github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/test_match_no_tests_build_failure.txt (about) 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 -- syntaxerror/x.go -- 10 package p 11 -- syntaxerror/x_test.go -- 12 package p 13 14 func f() (x.y, z int) { 15 }