[Bug testsuite/39952] Inadequate gcc.dg/compat/struct-layout-1_generate.c

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 29 14:59:00 GMT 2009



------- Comment #5 from jakub at gcc dot gnu dot org  2009-04-29 14:59 -------
Yeah, and that's because otherwise reproduceability would be a nightmare.
We even use the same pseudo-random generator on all hosts to have as few
differences as possible.
It is certainly possibility to add a -sSEED option (and -s meaning
generate_srandom call seeing with time_t or something), but it isn't something
that should be run by default.

If you have sufficient CPU cycles, you can obviously in your testing bump -n
from 3000 to 1000000 or something and use -s, after making sure you make a copy
of the generated files whenever you notice some failure to be able to reproduce
it.  Generally, a single line like in struct-layout-1_test.h on which the test
failed should be enough to reproduce it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39952



More information about the Gcc-bugs mailing list