Some tests do not run unless they are run by Administrator.
Compare normal user runs:
c:\>go test -v -short os | grep -i skip
--- SKIP: TestStatError (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestReaddirNValues (0.00s)
os_test.go:515: test.short; skipping
--- SKIP: TestReaddirStatFailures (0.00s)
os_test.go:601: skipping test on windows
--- SKIP: TestSymlink (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestLongSymlink (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestLargeWriteToConsole (0.00s)
os_test.go:1817: skipping console-flooding test; enable with -large_write
--- SKIP: TestStatRelativeSymlink (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestSleep (0.00s)
os_test.go:2072: Skipping in short mode
--- SKIP: TestRemoveAllRace (0.00s)
os_test.go:2182: skipping on windows
--- SKIP: TestPipeThreads (0.00s)
os_test.go:2217: skipping on Windows; issue 19098
--- SKIP: TestDirectorySymbolicLink (0.03s)
os_windows_test.go:397: skipping some tests, could not enable "SeCreateSymbolicLinkPrivilege": Not all privileges or groups referenced are assigned to the caller.
--- SKIP: TestNetworkSymbolicLink (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestShareNotExistError (0.00s)
os_windows_test.go:547: slow test that uses network; skipping
--- SKIP: TestStatSymlinkLoop (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestRemoveAllLarge (0.00s)
path_test.go:176: skipping in short mode
--- SKIP: TestMkdirAllWithSymlink (0.00s)
testenv.go:189: skipping test: cannot make symlinks on windows/amd64: you don't have enough privileges to create symlinks
--- SKIP: TestMkdirAllAtSlash (0.00s)
path_test.go:234: skipping on windows
c:\>
to Administrator runs:
c:\>go test -v -short os | grep -i skip
--- SKIP: TestReaddirNValues (0.00s)
os_test.go:515: test.short; skipping
--- SKIP: TestReaddirStatFailures (0.00s)
os_test.go:601: skipping test on windows
--- SKIP: TestLargeWriteToConsole (0.00s)
os_test.go:1817: skipping console-flooding test; enable with -large_write
--- SKIP: TestSleep (0.00s)
os_test.go:2072: Skipping in short mode
--- SKIP: TestRemoveAllRace (0.00s)
os_test.go:2182: skipping on windows
--- SKIP: TestPipeThreads (0.00s)
os_test.go:2217: skipping on Windows; issue 19098
--- SKIP: TestShareNotExistError (0.00s)
os_windows_test.go:547: slow test that uses network; skipping
--- SKIP: TestRemoveAllLarge (0.00s)
path_test.go:176: skipping in short mode
--- SKIP: TestMkdirAllAtSlash (0.00s)
path_test.go:234: skipping on windows
c:\>
We have 5 windows builders at this moment. Perhaps we could make some run as Administrator to cover more tests.
Thank you.
Alex
Some tests do not run unless they are run by Administrator.
Compare normal user runs:
to Administrator runs:
We have 5 windows builders at this moment. Perhaps we could make some run as Administrator to cover more tests.
Thank you.
Alex