Testsuite: add dg-{begin|end}-multiline-output commands
[gcc.git] / boehm-gc / testsuite / lib / boehm-gc.exp
index 2376102e9bd57959d7ceec410892587bb893acbf..d162035b63b2a7a6e80374def2d2fed7cf8689d1 100644 (file)
@@ -27,9 +27,11 @@ load_gcc_lib wrapper.exp
 load_gcc_lib target-supports.exp
 # For dg-skip-if.
 load_gcc_lib target-supports-dg.exp
+load_gcc_lib target-utils.exp
 # For ${tool}_exit.
 load_gcc_lib gcc-defs.exp
 # For prune_gcc_output.
+load_gcc_lib multiline.exp
 load_gcc_lib prune.exp
 
 set dg-do-what-default run
@@ -233,7 +235,7 @@ proc boehm-gc-dg-prune { system text } {
     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
 }