Commit 096e2bff authored by Alex Brainman's avatar Alex Brainman

cmd/go: run tests that require symlinks

Change-Id: I19a724ea4eb1ba0ff558721650c89a949e53b7c7
Reviewed-on: https://go-review.googlesource.com/42895Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 6dcaa095
...@@ -1908,10 +1908,7 @@ func TestGoTestDashIDashOWritesBinary(t *testing.T) { ...@@ -1908,10 +1908,7 @@ func TestGoTestDashIDashOWritesBinary(t *testing.T) {
// Issue 4568. // Issue 4568.
func TestSymlinksList(t *testing.T) { func TestSymlinksList(t *testing.T) {
switch runtime.GOOS { testenv.MustHaveSymlink(t)
case "plan9", "windows":
t.Skipf("skipping symlink test on %s", runtime.GOOS)
}
tg := testgo(t) tg := testgo(t)
defer tg.cleanup() defer tg.cleanup()
...@@ -1929,10 +1926,7 @@ func TestSymlinksList(t *testing.T) { ...@@ -1929,10 +1926,7 @@ func TestSymlinksList(t *testing.T) {
// Issue 14054. // Issue 14054.
func TestSymlinksVendor(t *testing.T) { func TestSymlinksVendor(t *testing.T) {
switch runtime.GOOS { testenv.MustHaveSymlink(t)
case "plan9", "windows":
t.Skipf("skipping symlink test on %s", runtime.GOOS)
}
tg := testgo(t) tg := testgo(t)
defer tg.cleanup() defer tg.cleanup()
...@@ -1956,10 +1950,7 @@ func TestSymlinksVendor(t *testing.T) { ...@@ -1956,10 +1950,7 @@ func TestSymlinksVendor(t *testing.T) {
// Issue 15201. // Issue 15201.
func TestSymlinksVendor15201(t *testing.T) { func TestSymlinksVendor15201(t *testing.T) {
switch runtime.GOOS { testenv.MustHaveSymlink(t)
case "plan9", "windows":
t.Skipf("skipping symlink test on %s", runtime.GOOS)
}
tg := testgo(t) tg := testgo(t)
defer tg.cleanup() defer tg.cleanup()
...@@ -1976,10 +1967,7 @@ func TestSymlinksVendor15201(t *testing.T) { ...@@ -1976,10 +1967,7 @@ func TestSymlinksVendor15201(t *testing.T) {
} }
func TestSymlinksInternal(t *testing.T) { func TestSymlinksInternal(t *testing.T) {
switch runtime.GOOS { testenv.MustHaveSymlink(t)
case "plan9", "windows":
t.Skipf("skipping symlink test on %s", runtime.GOOS)
}
tg := testgo(t) tg := testgo(t)
defer tg.cleanup() defer tg.cleanup()
...@@ -3995,10 +3983,7 @@ func TestExecutableGOROOT(t *testing.T) { ...@@ -3995,10 +3983,7 @@ func TestExecutableGOROOT(t *testing.T) {
t.Fatalf("%s env GOROOT = %q with pkg/tool, want %q", newGoTool, got, want) t.Fatalf("%s env GOROOT = %q with pkg/tool, want %q", newGoTool, got, want)
} }
switch runtime.GOOS { testenv.MustHaveSymlink(t)
case "plan9", "windows":
t.Skipf("skipping symlink test on %s", runtime.GOOS)
}
tg.tempDir("notgoroot/bin") tg.tempDir("notgoroot/bin")
symGoTool := tg.path("notgoroot/bin/go" + exeSuffix) symGoTool := tg.path("notgoroot/bin/go" + exeSuffix)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment