This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/39952] Inadequate gcc.dg/compat/struct-layout-1_generate.c
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2009 14:59:39 -0000
- Subject: [Bug testsuite/39952] Inadequate gcc.dg/compat/struct-layout-1_generate.c
- References: <bug-39952-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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