]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
binutils: testsuite: fix duplicate testnames in readelf.exp
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 16 Sep 2025 15:08:12 +0000 (16:08 +0100)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 16 Sep 2025 16:15:57 +0000 (17:15 +0100)
commitc2e7c05ad4f69e3b9dc531e6f77670cc88d03540
tree1a6a67d4e0f1daabda0ee4ee016e90a587a2ac75
parentf78ff4d0dcf61208a7fcfba60d2ba2edf5aec503
binutils: testsuite: fix duplicate testnames in readelf.exp

There are two places in readelf.exp where we generate duplicate
testnames.

The first is due to calling readelf_find_size twice with the same
iteration index (2).  This is fixed by using 4 for the second
instance.

The other is at the end of readelf_thin_archive_test.  This test calls
readelf_test before unconditionally passing.  It happens to construct
exactly the same test name as readelf test (might not be a
coincidence), so we end up with a duplicate test.  But it seems wrong
anyway to 'pass' a test that readelf_test might have failed, so simply
delete this duplicate pass entry.
binutils/testsuite/binutils-all/readelf.exp