aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-10-10 10:43:16 +1030
committerAlan Modra <amodra@gmail.com>2024-10-16 14:54:00 +1030
commitbc85bc665a95b84aba854653b4289a3b1c4fbf05 (patch)
tree617a27830ced932e47636f80bcbc500e91eb74e6 /ld/testsuite/ld-elf
parent76eab8f47a743bde86be410bce8fd8382eaea6c2 (diff)
downloadgdb-bc85bc665a95b84aba854653b4289a3b1c4fbf05.zip
gdb-bc85bc665a95b84aba854653b4289a3b1c4fbf05.tar.gz
gdb-bc85bc665a95b84aba854653b4289a3b1c4fbf05.tar.bz2
Add noxfail option to run_dump_test
The noxfail option is useful in situations like pr23658-1e which fails on all microblaze ELF targets except microblaze-linux. This was possible to handle by writing a small proc and use that as an xfail predicate, or painstakingly listing all microblaze ELF targets, but this is simpler. The patch also fixes some other FAILs and XPASSes of the pr23658 tests. binutils/ * testsuite/lib/binutils-common.exp (run_dump_test): Support noxfail. ld/ * testsuite/ld-elf/pr23658-1a.d: Don't xfail m68hc12. * testsuite/ld-elf/pr23658-1e.d: Likewise. xfail xstormy16 and correct microblaze xfails.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/pr23658-1a.d1
-rw-r--r--ld/testsuite/ld-elf/pr23658-1e.d5
2 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elf/pr23658-1a.d b/ld/testsuite/ld-elf/pr23658-1a.d
index 21847f9..c2caf49 100644
--- a/ld/testsuite/ld-elf/pr23658-1a.d
+++ b/ld/testsuite/ld-elf/pr23658-1a.d
@@ -8,7 +8,6 @@
# Since generic linker targets don't place SHT_NOTE sections as orphan,
# SHT_NOTE sections aren't grouped nor sorted.
#xfail: [uses_genelf]
-#xfail: m68hc12-*
# The following targets place .note.gnu.build-id in unusual places.
#xfail: d10v-* pru-*
diff --git a/ld/testsuite/ld-elf/pr23658-1e.d b/ld/testsuite/ld-elf/pr23658-1e.d
index 992c748..dbb05e6 100644
--- a/ld/testsuite/ld-elf/pr23658-1e.d
+++ b/ld/testsuite/ld-elf/pr23658-1e.d
@@ -10,11 +10,12 @@
# placed before text sections and there should no other note sections
# between .note.gnu.build-id and text sections.
#xfail: [uses_genelf]
-#xfail: m68hc12-*
# The following targets don't support --build-id.
#xfail: cr16-* crx-* visium-*
# The following targets place .note.gnu.build-id in unusual places.
-#xfail: *-*-hpux* arc*-* avr-* microblaze-*-* nds32*-* spu-*-*
+#xfail: *-*-hpux*
+#xfail: arc*-* avr-* m68hc1*-* microblaze*-* nds32*-* spu-*-* xstormy16-*-*
+#noxfail: microblaze*-linux*
#...
+[0-9]+ +\.note.gnu.build-id +