You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test looks for absolute file name, but go tool may rewrite it to shorter relative form.
For example test fails on Windows when
GOROOT=D:\opt\usr\src\go\jtip
TMP=D:\opt\usr\src\go\tmp
--- FAIL: TestFileLineInErrorMessages (0.36s)
go_test.go:183: running testgo [run D:\opt\usr\src\go\tmp\gotest000670749\err.go]
go_test.go:202: standard error:
go_test.go:203: ..\..\..\..\tmp\gotest000670749\err.go:1:22: cannot find package "bar" in any of:
D:\opt\usr\src\go\jtip\src\bar (from $GOROOT)
($GOPATH not set)
go_test.go:222: testgo failed as expected: exit status 1
go_test.go:264: missing file:line in error message
go_test.go:265: pattern ^D:\\opt\\usr\\src\\go\\tmp\\gotest000670749\\err\.go: not found in standard error
FAIL
The text was updated successfully, but these errors were encountered:
0x6a67
changed the title
cmd/go: TestFileLineInErrorMessages - wrong assumption about file name in error message
cmd/go: TestFileLineInErrorMessages may fail due to wrong assumption about file name in error message
Jun 23, 2015
Test looks for absolute file name, but go tool may rewrite it to shorter relative form.
For example test fails on Windows when
GOROOT=D:\opt\usr\src\go\jtip
TMP=D:\opt\usr\src\go\tmp
The text was updated successfully, but these errors were encountered: