[gdb/testsuite] Make gdb.dwarf2/dwzbuildid.exp more robust
authorTom de Vries <tdevries@suse.de>
Fri, 8 Sep 2023 10:27:02 +0000 (12:27 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 8 Sep 2023 10:27:02 +0000 (12:27 +0200)
commit9c5bc1bd1399c11427deec1f8de6c537ab249087
tree9dc0d34ec43ebb8f66ead851e9ccdaea0c25013d
parent92b7ae3f9a3333cb7902c8a7676ae7ed5bcd54d0
[gdb/testsuite] Make gdb.dwarf2/dwzbuildid.exp more robust

I ran test-case gdb.dwarf2/dwzbuildid.exp with target board cc-with-gdb-index,
and noticed that compilation failure for one exec prohibited testing of all
execs.

Fix this by restructuring the test-case, such that we have:
...
PASS: gdb.dwarf2/dwzbuildid.exp: testname=ok: set debug-file-directory
PASS: gdb.dwarf2/dwzbuildid.exp: testname=ok: print the_int
UNSUPPORTED: gdb.dwarf2/dwzbuildid.exp: testname=mismatch: compilation failed
UNSUPPORTED: gdb.dwarf2/dwzbuildid.exp: testname=fallback: compilation failed
...

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/dwzbuildid.exp