scandump.exp (scan-dump, [...]): Use printable pattern in test name.
authorJanis Johnson <janisjo@codesourcery.com>
Tue, 26 Jun 2012 20:17:00 +0000 (20:17 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Tue, 26 Jun 2012 20:17:00 +0000 (20:17 +0000)
* lib/scandump.exp (scan-dump, scan-dump-not, scan-dump-dem,
scan-dump-dem-not): Use printable pattern in test name.

From-SVN: r188996

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

index 9481095..87c5d49 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-26  Janis Johnson  <janisjo@codesourcery.com>
+
+       * lib/scandump.exp (scan-dump, scan-dump-not, scan-dump-dem,
+       scan-dump-dem-not): Use printable pattern in test name.
+
 2012-06-26  Sterling Augustine  <saugustine@google.com>
            Dominique Dhumieres  <dominiq@lps.ens.fr>
 
index 80b554b..b3bf2a9 100644 (file)
@@ -47,8 +47,9 @@ proc scan-dump { args } {
 
     set testcase [testname-for-summary]
 
+    set printable_pattern [make_pattern_printable [lindex $args 1]]
     set suf [dump-suffix [lindex $args 2]]
-    set testname "$testcase scan-[lindex $args 0]-dump $suf \"[lindex $args 1]\""
+    set testname "$testcase scan-[lindex $args 0]-dump $suf \"$printable_pattern\""
     set src [file tail [lindex $testcase 0]]
     set output_file "[glob -nocomplain $src.[lindex $args 2]]"
     if { $output_file == "" } {
@@ -126,8 +127,9 @@ proc scan-dump-not { args } {
     }
 
     set testcase [testname-for-summary]
+    set printable_pattern [make_pattern_printable [lindex $args 1]]
     set suf [dump-suffix [lindex $args 2]]
-    set testname "$testcase scan-[lindex $args 0]-dump-not $suf \"[lindex $args 1]\""
+    set testname "$testcase scan-[lindex $args 0]-dump-not $suf \"$printable_pattern\""
     set src [file tail [lindex $testcase 0]]
     set output_file "[glob -nocomplain $src.[lindex $args 2]]"
     if { $output_file == "" } {
@@ -178,8 +180,9 @@ proc scan-dump-dem { args } {
     }
 
     set testcase [testname-for-summary]
+    set printable_pattern [make_pattern_printable [lindex $args 1]]
     set suf [dump-suffix [lindex $args 2]]
-    set testname "$testcase scan-[lindex $args 0]-dump-dem $suf \"[lindex $args 1]\""
+    set testname "$testcase scan-[lindex $args 0]-dump-dem $suf \"$printable_pattern\""
     set src [file tail [lindex $testcase 0]]
     set output_file "[glob -nocomplain $src.[lindex $args 2]]"
     if { $output_file == "" } {
@@ -229,8 +232,9 @@ proc scan-dump-dem-not { args } {
     }
 
     set testcase [testname-for-summary]
+    set printable_pattern [make_pattern_printable [lindex $args 1]
     set suf [dump-suffix [lindex $args 2]]
-    set testname "$testcase scan-[lindex $args 0]-dump-dem-not $suf \"[lindex $args 1]\""
+    set testname "$testcase scan-[lindex $args 0]-dump-dem-not $suf \"$printable_pattern\""
     set src [file tail [lindex $testcase 0]]
     set output_file "[glob -nocomplain $src.[lindex $args 2]]"
     if { $output_file == "" } {