src/cmd/go/testdata/script/test_match_no_tests_build_failure.txt
raw| 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\]' |
| 7 | stdout 'FAIL' |
| 8 | |
| 9 | -- go.mod -- |
| 10 | module syntaxerror |
| 11 | |
| 12 | go 1.16 |
| 13 | -- x.go -- |
| 14 | package p |
| 15 | -- x_test.go -- |
| 16 | package p |
| 17 | |
| 18 | func f() (x.y, z int) { |
| 19 | } |