go-test.exp: recognize errorcheckdir -n
authorIan Lance Taylor <iant@golang.org>
Thu, 10 Dec 2020 00:34:14 +0000 (16:34 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 10 Dec 2020 00:35:08 +0000 (16:35 -0800)
* go.test/go-test.exp (go-gc-tests): Recognize errorcheckdir -n,
for bug345.go.

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

index d11a2c2bba4f240ed2e5fd9335afe8fcfe35db8d..b03cb16990d9a5e88f7e05395fe579fc78569261 100644 (file)
@@ -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"