summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/test_fullpath.txt
blob: 8e015522381afb2c474f2143293a9248e1992378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[short] skip

# test with -fullpath
! go test ./x/... -fullpath
stdout '^ +.+/gopath/src/x/fullpath/fullpath_test.go:8: test failed'
# test without -fullpath
! go test ./x/...
stdout '^ +fullpath_test.go:8: test failed'

-- go.mod --
module example
-- x/fullpath/fullpath_test.go --
package fullpath_test

import (
	"testing"
)

func TestFullPath(t *testing.T) {
	t.Error("test failed")
}