src/os/os_windows_test.go | 5 +++++ diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index 54ba99bf8849ead0a01e7efcc633ba397f7259a9..ae23b7ab41b2ca66886d4b6d4e3de3d76a62259b 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -404,6 +404,8 @@ 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) @@ -453,6 +455,9 @@ err = windows.NetShareAdd(nil, 2, (*byte)(unsafe.Pointer(&p)), nil) if err != nil { 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) }