This is the mail archive of the
mailing list for the GCC project.
Re: RFC: Generated structure layout tests for gcc.dg/compat/struct-layout-1(take 2)
On Thu, 22 Jul 2004, Jakub Jelinek wrote:
> The generator uses pseudo-random generator, which I'm afraid will give
> different results between different hosts.
We could include a private version of a RNG, and fix the beginning seed.
I don't think generating the files would be necessary, but it surely would
be nice, and satisfy my esthetic sense (of not including megabytes of
generated files) ;-)
> When the generated tests are included, it is unambiguous to talk about
> particular test file and test number.
With the above, one could output the "seed" for each testcase and by such
also talk about exactly one testcase. One could even talk about testcases
not even in the CVS, because everyone could recreate it on the fly.
It was just a thought occuring to me.