Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path/filepath: TestNTNamespaceSymlink fails with "You do not have sufficient privilege to perform this operation." #29745

Closed
alexbrainman opened this issue Jan 15, 2019 · 1 comment

Comments

@alexbrainman
Copy link
Member

While investigating recent windows-arm builder failure

https://build.golang.org/log/c00262fb40118e6917815b61ce7e1643b702bdc3

--- FAIL: TestNTNamespaceSymlink (5.38s)
    path_windows_test.go:564: failed to run mklink C:\Data\Users\DefaultAccount\AppData\Local\Temp\TestNTNamespaceSymlink250384499\filelink \\?\Volume{ae420040-0000-0000-0000-800400000000}\\Data\Users\DefaultAccount\AppData\Local\Temp\TestNTNamespaceSymlink250384499\file: exit status 1 "You do not have sufficient privilege to perform this operation.\r\n"
FAIL
FAIL	path/filepath	26.728s

I discovered that this test also fails on my Windows 10 computer.

The test passes on our windows-386 and windows-amd64 builders, probably, because the user that runs the test is allowed to create symlinks. But that is not always true.

So we need to adjust the test not to run, if user is not allowed to create symlinks.

I will try and send a fix for this.

@jordanrh1 FYI

Alex

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/157917 mentions this issue: path/filepath: skip part of TestNTNamespaceSymlink

@golang golang locked and limited conversation to collaborators Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants