bogus FAILs from mmix ld testsuite

Alan Modra amodra@gmail.com
Mon Nov 24 11:24:33 GMT 2025


Get rid of [^c][^h][^i][^l][^d] from error regex.  It won't match
/home/... and other legitimate paths printed for the program name of
the ld under test.

	* testsuite/ld-mmix/bpo-15.d: Fix error regex.
	* testsuite/ld-mmix/bpo-15m.d: Likewise.
	* testsuite/ld-mmix/bpo-21.d: Likewise.
	* testsuite/ld-mmix/bpo-21m.d: Likewise.

diff --git a/ld/testsuite/ld-mmix/bpo-15.d b/ld/testsuite/ld-mmix/bpo-15.d
index 6845a878e74..325933e1245 100644
--- a/ld/testsuite/ld-mmix/bpo-15.d
+++ b/ld/testsuite/ld-mmix/bpo-15.d
@@ -2,6 +2,6 @@
 #source: bpo-7.s
 #as: -linker-allocated-gregs
 #ld: -m elf64mmix
-#error: ^[^c][^h][^i][^l][^d].* undefined reference to `areg'$
+#error: ^.* undefined reference to `areg'$
 
 # A BPO against an undefined symbol.
diff --git a/ld/testsuite/ld-mmix/bpo-15m.d b/ld/testsuite/ld-mmix/bpo-15m.d
index eacedf57f61..3ab2b9d02c6 100644
--- a/ld/testsuite/ld-mmix/bpo-15m.d
+++ b/ld/testsuite/ld-mmix/bpo-15m.d
@@ -2,6 +2,6 @@
 #source: bpo-7.s
 #as: -linker-allocated-gregs
 #ld: -m mmo
-#error: ^[^c][^h][^i][^l][^d].* undefined reference to `areg'$
+#error: ^.* undefined reference to `areg'$
 
 # A BPO against an undefined symbol.
diff --git a/ld/testsuite/ld-mmix/bpo-21.d b/ld/testsuite/ld-mmix/bpo-21.d
index f208cb6a527..9681ae1864d 100644
--- a/ld/testsuite/ld-mmix/bpo-21.d
+++ b/ld/testsuite/ld-mmix/bpo-21.d
@@ -3,7 +3,7 @@
 #source: bpo-7.s
 #as: -linker-allocated-gregs
 #ld: -m elf64mmix
-#error: ^[^c][^h][^i][^l][^d].* undefined reference to `areg'$
+#error: ^.* undefined reference to `areg'$
 
 # A BPO reloc against an undefined symbol, with a full set of normal
 # BPO:s.
diff --git a/ld/testsuite/ld-mmix/bpo-21m.d b/ld/testsuite/ld-mmix/bpo-21m.d
index b437dd38a61..a6c996bec3d 100644
--- a/ld/testsuite/ld-mmix/bpo-21m.d
+++ b/ld/testsuite/ld-mmix/bpo-21m.d
@@ -3,7 +3,7 @@
 #source: bpo-7.s
 #as: -linker-allocated-gregs
 #ld: -m mmo
-#error: ^[^c][^h][^i][^l][^d].* undefined reference to `areg'$
+#error: ^.*undefined reference to `areg'$
 
 # A BPO reloc against an undefined symbol, with a full set of normal
 # BPO:s.

-- 
Alan Modra


More information about the Binutils mailing list