This patch to the Go testsuite driver ignores lines containing //// when
handling an errchk test (which is similar to a dg-test).  This reflects
a change to the master errchk driver, which is a perl script.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.

Ian


2011-03-23  Ian Lance Taylor  <i...@google.com>

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


Index: gcc/testsuite/go.test/go-test.exp
===================================================================
--- gcc/testsuite/go.test/go-test.exp	(revision 171359)
+++ gcc/testsuite/go.test/go-test.exp	(working copy)
@@ -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

Reply via email to