* go.test/go-test.exp (errchk): Ignore lines containing ////.

From-SVN: r171370
This commit is contained in:
Ian Lance Taylor 2011-03-23 23:59:46 +00:00 committed by Ian Lance Taylor
parent 4bfc521c9e
commit e110e232b6
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2011-03-23 Ian Lance Taylor <iant@google.com>
* go.test/go-test.exp (errchk): Ignore lines containing ////.
2011-03-23 Richard Guenther <rguenther@suse.de>
* gcc.dg/struct: Remove directory and contents.

View file

@ -51,6 +51,10 @@ proc errchk { test } {
set fdout [open $filename w]
fconfigure $fdout -encoding binary
while { [gets $fdin copy_line] >= 0 } {
if [string match "*////*" $copy_line] {
puts $fdout $copy_line
continue
}
regsub "// \(GCCGO_\)?ERROR \"\(\[^\"\]*\)\".*$" $copy_line "// \{ dg-error \"\\2\" \}" out_line
if [string match "*dg-error*.\**" $out_line] {
# I worked out the right number of backslashes by