...
Text file
src/cmd/go/testdata/script/test_match_no_tests_build_failure.txt
1# Test that when there's a build failure and a -run flag that doesn't match,
2# that the error for not matching tests does not override the error for
3# the build failure.
4
5! go test -run ThisWillNotMatch syntaxerror
6! stderr '(?m)^ok.*\[no tests to run\]'
7stdout 'FAIL'
8
9-- go.mod --
10module syntaxerror
11
12go 1.16
13-- x.go --
14package p
15-- x_test.go --
16package p
17
18func f() (x.y, z int) {
19}
View as plain text