This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] Account for absolute path to ranlib on Darwin (PR testsuite/48480)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 06 Apr 2011 17:28:09 +0200
- Subject: [testsuite] Account for absolute path to ranlib on Darwin (PR testsuite/48480)
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.
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