-
Notifications
You must be signed in to change notification settings - Fork 84
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
rename/21.t #74
Comments
Are you saying that the rest of the test contained spurious failures? What OS and FS are you using? |
I was writing a filesystem on Linux. There is a bug that messed up on the permission bits and failed a lot of tests. For rename/21.t, it passed the 1st rename with EACCES and failed the 2nd rename with ENOENT. I looked at the test and felt that the filesystem is doing things correctly. Later, I fixed the bug and passed the test. My question is that if failure (EACCES) is allowed in the first rename, why the second rename cannot return ENOENT? |
You're correct. The second rename on line 26 should allow ENOENT, if the first one failed. Would you care to submit a patch? |
pjdfstest/tests/rename/21.t
Line 26 in c711b5f
rename/21.t renames ${n2}/${n0} to ${n2}/${n1} while it doesn't have write permission to ${n2}/${n0}. The result can be 0 or EACCES. However, if the filesystem returns EACCES, it will return ENOENT to the next test because ${n2}/${n1} doesn't exist. The test needs to remove and recreate the directory or allow ENOENT in the next test.
The text was updated successfully, but these errors were encountered: