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]

Fix ld-scripts/phdrs3.d testcase for Windows host


The testcase ld-scripts/phdrs3.d has a regular expression expecting the 
name of the linker binary to match [^ \n:]*; in particular, not to contain 
a colon, causing it to fail for Windows hosts where the path includes a 
drive letter.  OK to commit this patch to fix this?

2009-10-14  Joseph Myers  <joseph@codesourcery.com>

	* ld-scripts/phdrs3.d: Allow colon in name of linker binary.

Index: ld/testsuite/ld-scripts/phdrs3.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-scripts/phdrs3.d,v
retrieving revision 1.2
diff -u -r1.2 phdrs3.d
--- ld/testsuite/ld-scripts/phdrs3.d	8 Oct 2009 01:11:56 -0000	1.2
+++ ld/testsuite/ld-scripts/phdrs3.d	14 Oct 2009 20:37:32 -0000
@@ -1,4 +1,4 @@
 # name: PHDRS headers
 # source: phdrs.s
 # ld: -T phdrs3.t
-# error: \A[^ \n:]*:[^:\n]*:5: PHDRS and FILEHDR.*
+# error: \A[^ \n]*:[^:\n]*:5: PHDRS and FILEHDR.*

-- 
Joseph S. Myers
joseph@codesourcery.com


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