-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
os: TestRemoveAllWithMoreErrorThanReqSize is failing on Plan 9 and Windows #35117
Comments
Change https://golang.org/cl/202757 mentions this issue: |
It's also failing on Windows: |
Change https://golang.org/cl/203502 mentions this issue: |
The test still fails on Windows.
On tip, error is now:
Following #26295 (and others) and as documented, |
Change https://golang.org/cl/204060 mentions this issue: |
…succeeds on Windows Also remove unused test hook. Updates #35117 Change-Id: I6f05ba234fb09e4b44e77c1539c02d1aed49910a Reviewed-on: https://go-review.googlesource.com/c/go/+/204060 Reviewed-by: Bryan C. Mills <[email protected]>
Change https://golang.org/cl/223700 mentions this issue: |
This comment has been minimized.
This comment has been minimized.
@gopherbot, please backport to Go 1.13. This is a test fix. It is needed to resolve a test failure in the |
Backport issue(s) opened: #37895 (for 1.13). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
…moveAllWithMoreErrorThanReqSize Previously we injected an error, and the injection points were (empirically) not realistic on some platforms. Instead, we now make the directory read-only, which (on most platforms) suffices to prevent the removal of its files. Also remove unused test hook, as was done in CL 204060. For #35117. For #29921. Fixes #37895. Change-Id: Ica4e2818566f8c14df3eed7c3b8de5c0abeb6963 Reviewed-on: https://go-review.googlesource.com/c/go/+/203502 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> (cherry picked from commit 06bdd52) Reviewed-on: https://go-review.googlesource.com/c/go/+/223700 Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Alexander Rakoczy <[email protected]>
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
All tests passed.
What did you see instead?
This test doesn't get run with the
-short
flag, so it's probably not getting run on the plan9 builders.On Plan 9, we use the "noat" implementation, which is slightly different from the "at" implementation in that it can
Remove
the parent directory within the for-loop in addition to theRemove
at the end of the function.This test tries to delete 1025 files. The first
Readdirnames
returns 1024 entries. In the secondReaddirnames
call, we get the 1 remaining entry. After deleting that one entry, instead of breaking out of the loop, the code tries toRemove
the parent directory. Since theRemove
succeeds, we return nil. I believe we need to an add additional hook right after thisRemove
call, and another hook right after we try toOpen
the deleted parent directory (only reached if hook is set by the test).@gopherbot Please add labels OS-Plan9, NeedsFix
The text was updated successfully, but these errors were encountered: