gcc.misc-tests/outputs.exp: assert unique test-names
authorHans-Peter Nilsson <hp@axis.com>
Thu, 25 Feb 2021 05:03:47 +0000 (06:03 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Thu, 4 Mar 2021 00:10:12 +0000 (01:10 +0100)
commit5c8eb88418fc0471eb00cdfe3efe7669f953069a
treed6d74f31d44b3be2be6387a170294ccd8f76a424
parent8d57bdadd2d9c2e5c95515ca7a583d7b407b55c4
gcc.misc-tests/outputs.exp: assert unique test-names

The gcc.misc-tests/outputs.exp tests can take some effort to
digest.

Navigating and debugging causes for failing tests here isn't
helped by the existence of tests with duplicate names.
Let's stop that from happening.  This requires that test-run
output is actually reviewed, as Tcl errors don't stop the
test-run, but then again there's no such dejagnu construct
that I know of.

Tested x86_64-pc-linux-gnu.

gcc/testsuite:
* gcc.misc-tests/outputs.exp: Append discriminating
suffixes to tests with duplicate names.
(outest): Assert that each running test has a unique
name.
gcc/testsuite/gcc.misc-tests/outputs.exp