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  <r...@cebitec.uni-bielefeld.de>

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

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
 }

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to