directory seek test: code does not agree with comment. Fix code.
the directory was opened with the seek right, and this test says that it was asserting that the seek right was present. However, the test was actually asserting that the seek right was *not* present. This fixes the code of the test, because I believe the comment is correct.
This commit is contained in:
@@ -33,7 +33,7 @@ unsafe fn test_directory_seek(dir_fd: wasi::Fd) {
|
||||
);
|
||||
assert_eq!(
|
||||
(fdstat.fs_rights_base & wasi::RIGHTS_FD_SEEK),
|
||||
0,
|
||||
wasi::RIGHTS_FD_SEEK,
|
||||
"directory has the seek right",
|
||||
);
|
||||
|
||||
|
||||
@@ -16,9 +16,6 @@ wasi_tests::remove_directory_trailing_slashes
|
||||
- cap-std Dir::remove_dir gives EINVAL when trying to remove dir with
|
||||
trailing slash. otherwise, everything passes.
|
||||
|
||||
wasi_tests::directory_seek
|
||||
- something weird about directory open rights / fdstat. need debug
|
||||
impl of Caps to see about this
|
||||
wasi_tests::fd_flags_set
|
||||
- set_fdflags is not implemented. test wanted to clear O_APPEND mode
|
||||
wasi_tests::path_filestat
|
||||
|
||||
Reference in New Issue
Block a user