mirror of
https://github.com/golang/go
synced 2024-11-18 16:44:43 -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:
parent
8852e49d27
commit
95e5e62424
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user