]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
binutils: testsuite: avoid dup names when using multiple as: directives
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 15 Sep 2025 14:52:23 +0000 (15:52 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 16 Sep 2025 09:31:11 +0000 (10:31 +0100)
commitf52a9a2b06db7584b5b3ba1e1e401f509b8d3bec
tree4c1bd924c88e7f3361e9fd0922913723d61fda8b
parenta2b55b8fdeac54f87a9a45f312bf8a54f3ef568c
binutils: testsuite: avoid dup names when using multiple as: directives

binutils tests support running a test with distinct options to the
assembler by allowing

#as: <optset-1>
#as: <optset-2>

But results in both test runs using the same test name in the summary
file.  This causes confusion if one test fails but the other doesn't
(and GCC's compare_tests script will diagnose this as an error).  To
fix the ambiguity append the appropriate optset to the test name.

We only do this if a test has multiple runs in this way to avoid
causing every test result name to change.
binutils/testsuite/lib/binutils-common.exp