OSDN Git Service

* go.test/go-test.exp (errchk): Ignore lines containing ////.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Mar 2011 23:59:46 +0000 (23:59 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Mar 2011 23:59:46 +0000 (23:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171370 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/go.test/go-test.exp

index e6d799d..cff3e49 100644 (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.
index 19cc0df..63800ac 100644 (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