aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_match_no_tests_build_failure.txt
blob: e1c96438c85793ab9527d0c2e00f2f1ba8c1f705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Test that when there's a build failure and a -run flag that doesn't match,
# that the error for not matching tests does not override the error for
# the build failure.

! go test -run ThisWillNotMatch syntaxerror
! stderr '(?m)^ok.*\[no tests to run\]'
stdout 'FAIL'

-- go.mod --
module syntaxerror

go 1.16
-- x.go --
package p
-- x_test.go --
package p

func f() (x.y, z int) {
}