Go testsuite patch committed: Recognize errorcheckdir -n

Ian Lance Taylor iant@golang.org
Thu Dec 10 00:35:18 GMT 2020


This patch to go-test.exp recognizes errorcheckdir -n, as used by the
updated bug345 test.  The -n option is meaningful for the gc compiler,
but irrelevant for gccgo.  Bootstrapped and ran Go testsuite on
x86_64-pc-linux-gnu.  Committed to mainline.

Ian

* go.test/go-test.exp (go-gc-tests): Recognize errorcheckdir -n,
for bug345.go.
-------------- next part --------------
f3f018dd31b3b4324276021f250db8ec6996ae8e
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp
index d11a2c2bba4..b03cb16990d 100644
--- a/gcc/testsuite/go.test/go-test.exp
+++ b/gcc/testsuite/go.test/go-test.exp
@@ -618,7 +618,7 @@ proc go-gc-tests { } {
 	    go-execute-xfail $test
 	} elseif { $test_line == "// errorcheck" } {
 	    errchk $test ""
-	} elseif { $test_line == "// errorcheckdir" } {
+	} elseif { $test_line == "// errorcheckdir" || $test_line == "// errorcheckdir -n" } {
 	    set hold_runtests $runtests
 	    set runtests "go-test.exp"
 	    set dir "[file rootname $test].dir"


More information about the Gcc-patches mailing list