diff mbox

[testsuite] Account for absolute path to ranlib on Darwin (PR testsuite/48480)

Message ID ydd8vvn1jsm.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth April 6, 2011, 3:28 p.m. UTC
As reported in the PR, we can get ranlib messages with an absolute path
to ranlib when running the boehm-gc testsuite on x86_64-apple-darwin10.
This differs from what Iain had reported for powerpc-apple-darwin9.  The
following patch accounts for that, tested by myself in tclsh and by
Dominique on the target.

Installed on mainline.

	Rainer


2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR testsuite/48480
	* testsuite/lib/boehm-gc.exp (boehm-gc-dg-prune): Allow for path
	to ranlib.
diff mbox

Patch

Index: boehm-gc/testsuite/lib/boehm-gc.exp
===================================================================
--- boehm-gc/testsuite/lib/boehm-gc.exp	(revision 172049)
+++ boehm-gc/testsuite/lib/boehm-gc.exp	(working copy)
@@ -233,7 +233,7 @@ 
     set text [prune_gcc_output $text]
 
     # Ignore harmless Darwin ranlib warnings.
-    regsub -all "(^|\n)(ranlib: file: \[^\n\]* has no symbols\n?)+" $text "\\1" text
+    regsub -all "(^|\n)(\[^\n\]*ranlib: file: \[^\n\]* has no symbols\n?)+" $text "\\1" text
 
     return $text
 }