diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index c8a133da81..fb95499c17 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -1269,6 +1269,9 @@ func TestReadlink(t *testing.T) { } t.Run(name, func(t *testing.T) { + if !tt.junction { + testenv.MustHaveSymlink(t) + } if !tt.relative { t.Parallel() }