From e110e232b6f7bbd3b4315161373f61623204d2b4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 23 Mar 2011 23:59:46 +0000 Subject: [PATCH] * go.test/go-test.exp (errchk): Ignore lines containing ////. From-SVN: r171370 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/go.test/go-test.exp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e6d799d2b06..cff3e4977bf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-03-23 Ian Lance Taylor + + * go.test/go-test.exp (errchk): Ignore lines containing ////. + 2011-03-23 Richard Guenther * gcc.dg/struct: Remove directory and contents. diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index 19cc0dfc4d3..63800ac5bd9 100644 --- a/gcc/testsuite/go.test/go-test.exp +++ b/gcc/testsuite/go.test/go-test.exp @@ -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 -- 2.30.2