This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: robustify ld/testsuite/ld-cris/badgotr1.d


When you change the way ld is invoked from "./ld" to
e.g. "/home/hp/.../ld", you'd fail matching
#error: ^[^c][^h][^i][^l][^d].*

Using anchors as in e.g. ld-scripts/rgn-over1.d seems better.
The chance that the invocation path for ld, when invoked from
its testsuite, starts with c, is supposedly sufficiently small
on host platforms where I care about running the testsuite.

Committed.
ld/testsuite:
	* ld-cris/badgotr1.d: Robustify regexp.

Index: ld-cris/badgotr1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-cris/badgotr1.d,v
retrieving revision 1.3
diff -p -u -r1.3 badgotr1.d
--- ld-cris/badgotr1.d	8 Mar 2005 02:31:40 -0000	1.3
+++ ld-cris/badgotr1.d	23 Nov 2008 21:24:33 -0000
@@ -2,7 +2,7 @@
 #as: --pic --underscore --em=criself
 #ld: -m crislinux -shared
 #objdump: -dr
-#error: ^[^c][^h][^i][^l][^d].* uses _-prefixed .* failed to merge .* no GOT .* Bad value$
+#error: \A[^\nc][^\n]*o: uses _-prefixed [^\nc]*\n[^\nc][^\n]* failed to merge [^\nc]*\n[^\nc][^\n]* no GOT [^\n]*\n[^\nc][^\n]* Bad value\Z
 
 # The error regex above is supposed to not match if we get a
 # SEGV, in which case we'll see "child killed: segmentation

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]