]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite, objective-c: Fix duplicate test names in 'special'.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 16 Sep 2025 22:31:49 +0000 (23:31 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 17 Sep 2025 08:03:58 +0000 (09:03 +0100)
commit8a7346964d984667d452fa46ea5ace5b372fb8fb
treeec2b7ee0940a845c0f3b9c41fc4349d623289c49
parent1cf8cb45d872a5f09d65c63c891c091710c37432
testsuite, objective-c: Fix duplicate test names in 'special'.

For macOS/Darwin, we run Objective-C tests for both the GNU and
NeXT runtimes (and these runs are usually differentiated by
identifying the runtime in the test name).

However, the 'special' sub-set of tests had a non-standard driver
since it needs two sources for each test (but did not report the
runtime in the test name and so shows duplicates).

We can now automate the multi-source case with dg-additional-sources
but need to do a little work to filter these additional sources
from the set (since they also have a .m suffix).

This addresses the FIXME in the original driver.

To resolve the duplicated names, means amending the reported name
to include the runtime as a differentiator, this means that test
comparisons will temporarily report new and missing tests for any
comparison that includes this change.

gcc/testsuite/ChangeLog:

* objc.dg/special/load-category-1.m: Add second source.
* objc.dg/special/load-category-2.m: Likewise.
* objc.dg/special/load-category-3.m: Likewise.
* objc.dg/special/unclaimed-category-1.m: Likewise.
* objc.dg/special/special.exp: Rewrite to make use of generic
testsuite facilities.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/objc.dg/special/load-category-1.m
gcc/testsuite/objc.dg/special/load-category-2.m
gcc/testsuite/objc.dg/special/load-category-3.m
gcc/testsuite/objc.dg/special/special.exp
gcc/testsuite/objc.dg/special/unclaimed-category-1.m