scandump.exp (scan-dump-times): Use printable version of regexp in test summary line.
authorJanis Johnson <janisjo@codesourcery.com>
Wed, 13 Jun 2012 22:54:24 +0000 (22:54 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Wed, 13 Jun 2012 22:54:24 +0000 (22:54 +0000)
* lib/scandump.exp (scan-dump-times): Use printable version of
regexp in test summary line.

From-SVN: r188538

gcc/testsuite/ChangeLog
gcc/testsuite/lib/scandump.exp

index 60f80c18dd2ccae5a548998f52aee3f444ccfff5..7722bed610df927c057cdf893030fe44173beaa8 100644 (file)
@@ -1,5 +1,8 @@
 2012-06-13  Janis Johnson  <janisjo@codesourcery.com>
 
+       * lib/scandump.exp (scan-dump-times): Use printable version of
+       regexp in test summary line.
+
        * gcc.dg/di-longlong64-sync-1.c: Add comments to checks for multiple
        messages reported for one line of source code.
        * gcc.dg/format/few-1.c: Likewise.
index 3f2ad2d7315a555e330fcd2a430fcc503957723d..7cde2a23ecf1456f93ca630cd76694e513fd891b 100644 (file)
@@ -94,7 +94,8 @@ proc scan-dump-times { args } {
     upvar 3 name testcase
 
     set suf [dump-suffix [lindex $args 3]]
-    set testname "$testcase scan-[lindex $args 0]-dump-times $suf \"[lindex $args 1]\" [lindex $args 2]"
+    set printable_pattern [make_pattern_printable [lindex $args 1]]
+    set testname "$testcase scan-[lindex $args 0]-dump-times $suf \"$printable_pattern\" [lindex $args 2]"
     set src [file tail [lindex $testcase 0]]
     set output_file "[glob -nocomplain $src.[lindex $args 3]]"
     if { $output_file == "" } {