diff options
Diffstat (limited to 'src/os/os_windows_test.go')
-rw-r--r-- | src/os/os_windows_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index 54ba99bf88..ae23b7ab41 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -404,6 +404,8 @@ func TestDirectorySymbolicLink(t *testing.T) { func TestNetworkSymbolicLink(t *testing.T) { testenv.MustHaveSymlink(t) + const _NERR_ServerNotStarted = syscall.Errno(2114) + dir, err := ioutil.TempDir("", "TestNetworkSymbolicLink") if err != nil { t.Fatal(err) @@ -454,6 +456,9 @@ func TestNetworkSymbolicLink(t *testing.T) { if err == syscall.ERROR_ACCESS_DENIED { t.Skip("you don't have enough privileges to add network share") } + if err == _NERR_ServerNotStarted { + t.Skip(_NERR_ServerNotStarted.Error()) + } t.Fatal(err) } defer func() { |