This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C/C++ testsuite uniqness


On Monday, January 13, 2003, at 04:43 PM, tm_gccmail@mail.kloo.net wrote:
On Mon, 13 Jan 2003, Mike Stump wrote:

Each test in the testsuites should have unique name. The following C++
testcases were added recently, and violate this rule:
The easy way to fix this is to prepend a globally unique string to each
one, e.g.

test0000-bug1.c
test0001-bug2.c
test0002-bug3.c
...

Bad idea?
I'm not sure I understand your idea. You want to have a static counter and just increment it each time you print a testsuite result? Well, this would violate the idea that the test case names are long term stable. If it were reinitialized to 1 for each testsuite, and bumped for each printed line, that might work:

bug1.c-1
bug1.c-2
bug1.c-3
bug2.c-1
bug3.c-1

but this is way worse than just mangling in the CFLAGS variable:

bug1.c -O0
bug1.c -O1
bug1.c -O2
bug2.c
bug3.c

which is the existing practice.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]