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:
Pat Hickey
2021-01-11 17:57:04 -08:00
parent b1d32f419c
commit d56d2f0219
2 changed files with 1 additions and 4 deletions

View File

@@ -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",
);