1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:44:42 -07:00

imports: fix TestFindImportVendor for 1.5 (fix build)

TBR=adonovan

Change-Id: I7edeb180bdf09648e7539b9371db0d14272b9030
Reviewed-on: https://go-review.googlesource.com/20697
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Robert Griesemer 2016-03-14 21:17:20 -07:00
parent 8852e49d27
commit 95e5e62424

View File

@ -865,7 +865,10 @@ func TestFindImportInternal(t *testing.T) {
build.Default.GOPATH = oldGOPATH build.Default.GOPATH = oldGOPATH
}() }()
_, err := os.Stat(filepath.Join(runtime.GOROOT(), "src/internal")) // Check for src/internal/race, not just src/internal,
// so that we can run this test also against go1.5
// (which doesn't contain that file).
_, err := os.Stat(filepath.Join(runtime.GOROOT(), "src/internal/race"))
if err != nil { if err != nil {
t.Skip(err) t.Skip(err)
} }