// Issue 4568.
func TestSymlinksList(t *testing.T) {
- switch runtime.GOOS {
- case "plan9", "windows":
- t.Skipf("skipping symlink test on %s", runtime.GOOS)
- }
+ testenv.MustHaveSymlink(t)
tg := testgo(t)
defer tg.cleanup()
// Issue 14054.
func TestSymlinksVendor(t *testing.T) {
- switch runtime.GOOS {
- case "plan9", "windows":
- t.Skipf("skipping symlink test on %s", runtime.GOOS)
- }
+ testenv.MustHaveSymlink(t)
tg := testgo(t)
defer tg.cleanup()
// Issue 15201.
func TestSymlinksVendor15201(t *testing.T) {
- switch runtime.GOOS {
- case "plan9", "windows":
- t.Skipf("skipping symlink test on %s", runtime.GOOS)
- }
+ testenv.MustHaveSymlink(t)
tg := testgo(t)
defer tg.cleanup()
}
func TestSymlinksInternal(t *testing.T) {
- switch runtime.GOOS {
- case "plan9", "windows":
- t.Skipf("skipping symlink test on %s", runtime.GOOS)
- }
+ testenv.MustHaveSymlink(t)
tg := testgo(t)
defer tg.cleanup()
t.Fatalf("%s env GOROOT = %q with pkg/tool, want %q", newGoTool, got, want)
}
- switch runtime.GOOS {
- case "plan9", "windows":
- t.Skipf("skipping symlink test on %s", runtime.GOOS)
- }
+ testenv.MustHaveSymlink(t)
tg.tempDir("notgoroot/bin")
symGoTool := tg.path("notgoroot/bin/go" + exeSuffix)