1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:58:34 -06: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
}()
_, 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 {
t.Skip(err)
}