-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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.TestWalk fails running as root #22
Comments
In src/pkg/os/path_test.go at line #122: if err = RemoveAll(path); err == nil { Is this a bug? The code at line #122 is different from any other codes calling RemoveAll() in path_test.go, at line #79, #100, #144, so I think the code should be if err = RemoveAll(path); err != nil { I modified the code and ran all.bash again, however I got another error message as below: gopack grc _test/os.a _gotest_.8 make[2]: Leaving directory `/root/go/src/pkg/os' --- FAIL: os_test.TestRemoveAll RemoveAll "_obj/_TestRemoveAll_" returned os.Error not *PathError FAIL |
> Is this a bug? Sorry, my guess was wrong. This is NOT a bug. At line #122, it is expected that RemoveAll(path) will fail, because Chmod(dpath, 0) is called previously and nobody, except root, can remove subdirectory `dpath`. The reason why all.bash failed is that I ran all.bash as root. When I ran all.bash as a normal user, installation successfully completed. Thank you. |
Same error, Centos 5.3 x64, running under root or sudo: 6g -o _gotest_.6 dir_linux.go env.go error.go exec.go file.go getwd.go path.go proc.go stat_linux.go sys_linux.go time.go types.go rm -f _test/os.a gopack grc _test/os.a _gotest_.6 make[2]: Leaving directory `/root/develop/go/src/pkg/os' --- FAIL: os_test.TestRemoveAll RemoveAll "_obj/_TestRemoveAll_" succeeded with chmod 0 subdirectory?(extra *os.PathError=lstat _obj/_TestRemoveAll_: no such file or directory) FAIL make[1]: *** [test] Error 1 make[1]: Leaving directory `/root/develop/go/src/pkg/os' make: *** [os.test] Error 2 |
Same error, Mac OS X Leopard 10.5.8: 8g -o _gotest_.8 dir_darwin.go env.go error.go exec.go file.go getwd.go path.go proc.go stat_darwin.go sys_darwin.go time.go types.go rm -f _test/os.a gopack grc _test/os.a _gotest_.8 --- FAIL: os_test.TestRemoveAll RemoveAll "_obj/_TestRemoveAll_" succeeded with chmod 0 subdirectory?(extra *os.PathError=lstat _obj/_TestRemoveAll_: no such file or directory) FAIL make[1]: *** [test] Error 1 make: *** [os.test] Error 2 |
Owner changed to r...@golang.org. Status changed to Started. |
This issue was closed by revision 1971e1b. Status changed to Fixed. Merged into issue #-. |
Issue #46 has been merged into this issue. |
Ya I get the same pretty much on my snow leopard... cd os && make test gotest rm -f _test/os.a _gotest_.6 6g -o _gotest_.6 dir_darwin.go env.go error.go exec.go file.go getwd.go path.go proc.go stat_darwin.go sys_darwin.go time.go types.go rm -f _test/os.a gopack grc _test/os.a _gotest_.6 --- FAIL: os_test.TestRemoveAll Chmod "_obj/_TestRemoveAll_/dir" 0777: chmod _obj/_TestRemoveAll_/dir: no such file or directory FAIL make[1]: *** [test] Error 1 make: *** [os.test] Error 2 |
This issue was closed by revision 2cda46d. Status changed to Fixed. Merged into issue #-. |
Issue #78 has been merged into this issue. |
Issue #84 has been merged into this issue. |
Issue #111 has been merged into this issue. |
Issue #120 has been merged into this issue. |
Issue #134 has been merged into this issue. |
This issue was closed by revision e7b8f5f. Status changed to Fixed. Merged into issue #-. |
Issue #193 has been merged into this issue. |
Issue #208 has been merged into this issue. |
Issue #235 has been merged into this issue. |
== Failure on Fedora 14, non-root user == === Version: === changeset: 6764:03404c0155f6 tag: tip user: Robert Griesemer date: Fri Nov 12 16:39:33 2010 -0800 summary: token/position: implemented Pos === Logs: === make[2]: Entering directory `/media/f/opt/go/src/pkg/os' rm -f _test/os.a _gotest_.8 make[2]: Leaving directory `/media/f/opt/go/src/pkg/os' make[2]: Entering directory `/media/f/opt/go/src/pkg/os' 8g -o _gotest_.8 dir_linux.go error.go env.go exec.go file.go getwd.go path.go proc.go stat_linux.go time.go types.go env_unix.go file_unix.go sys_linux.go rm -f _test/os.a gopack grc _test/os.a _gotest_.8 make[2]: Leaving directory `/media/f/opt/go/src/pkg/os' --- FAIL: os_test.TestRemoveAll RemoveAll "_obj/_TestRemoveAll_" succeeded with chmod 0 subdirectory%!(EXTRA *os.PathError=lstat _obj/_TestRemoveAll_: no such file or directory) FAIL make[1]: *** [test] Error 1 make[1]: Leaving directory `/media/f/opt/go/src/pkg/os' make: *** [os.test] Error 2 |
Updates golang#22 Change-Id: I643ba889a2b6da03bf88b2131cf8118005302de5
Technically this shouldn't be needed, for $8200(R2) we seem to get a C_ADDR from aclass by mistake, but this change is correct and gets us further. We'll deal with aclass later. Fixes golang#22 Change-Id: Ief32b80100d7c1a02f8b57a1f4016463cfe52281
Add the /api/search route to gaby. It is like /search, but for programs instead of people. Fixes golang/go#22. For golang/go#22. Change-Id: I17518611d803e35401a08acbb2b215e49d273f9d Reviewed-on: https://go-review.googlesource.com/c/oscar/+/614677 Reviewed-by: Tatiana Bradley <tatianabradley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
by DickFardos:
The text was updated successfully, but these errors were encountered: