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: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2009 15:48:53 -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 #6 from hjl dot tools at gmail dot com 2009-04-29 15:48 -------
So the issues are
1. We want to test as many different combination as possible at random.
2. We want each test reproducible.
Can we generate tests at random in such a way that they are reproducible?
Can we do
1. Put the random seed in generated file.
2. Change struct-layout-1_generate.c to take a random seed.
so that if there is a failure, we can run struct-layout-1_generate.c
with the known random seed on the same platform?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39952