aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/test_vet.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/test_vet.txt')
-rw-r--r--src/cmd/go/testdata/script/test_vet.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/cmd/go/testdata/script/test_vet.txt b/src/cmd/go/testdata/script/test_vet.txt
index af26b4de79..5af26b54f9 100644
--- a/src/cmd/go/testdata/script/test_vet.txt
+++ b/src/cmd/go/testdata/script/test_vet.txt
@@ -17,20 +17,24 @@ go test -vet=off p1.go
stdout '\[no test files\]'
# Test issue #22890
-go test vetcycle
-stdout 'vetcycle.*\[no test files\]'
+go test m/vetcycle
+stdout 'm/vetcycle.*\[no test files\]'
# Test with ...
-! go test vetfail/...
+! go test ./vetfail/...
stderr 'Printf format %d'
-stdout 'ok\s+vetfail/p2'
+stdout 'ok\s+m/vetfail/p2'
# Check there's no diagnosis of a bad build constraint in vetxonly mode.
# Use -a so that we need to recompute the vet-specific export data for
# vetfail/p1.
-go test -a vetfail/p2
+go test -a m/vetfail/p2
! stderr 'invalid.*constraint'
+-- go.mod --
+module m
+
+go 1.16
-- p1_test.go --
package p
@@ -74,7 +78,7 @@ func F() {
-- vetfail/p2/p2.go --
package p2
-import _ "vetfail/p1"
+import _ "m/vetfail/p1"
func F() {
}