From 9042f8f29666241691f82aee848377219cff0905 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Wed, 13 Jun 2012 22:54:24 +0000 Subject: [PATCH] scandump.exp (scan-dump-times): Use printable version of regexp in test summary line. * lib/scandump.exp (scan-dump-times): Use printable version of regexp in test summary line. From-SVN: r188538 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/lib/scandump.exp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 60f80c18dd2..7722bed610d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2012-06-13 Janis Johnson + * 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. diff --git a/gcc/testsuite/lib/scandump.exp b/gcc/testsuite/lib/scandump.exp index 3f2ad2d7315..7cde2a23ecf 100644 --- a/gcc/testsuite/lib/scandump.exp +++ b/gcc/testsuite/lib/scandump.exp @@ -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 == "" } { -- 2.30.2