Update wasi-tests to wasi 0.11. (#5488)
This updates the tests to version 0.11 of the wasi bindings. There aren't any fundamental changes here; this just syncs up with the latest version so that it's consistent with other users of the wasi APIs.
This commit is contained in:
@@ -9,8 +9,7 @@ unsafe fn test_dangling_symlink(dir_fd: wasi::Fd) {
|
||||
// Try to open it as a directory with O_NOFOLLOW.
|
||||
assert_errno!(
|
||||
wasi::path_open(dir_fd, 0, "symlink", wasi::OFLAGS_DIRECTORY, 0, 0, 0)
|
||||
.expect_err("opening a dangling symlink as a directory")
|
||||
.raw_error(),
|
||||
.expect_err("opening a dangling symlink as a directory"),
|
||||
wasi::ERRNO_NOTDIR,
|
||||
wasi::ERRNO_LOOP
|
||||
);
|
||||
@@ -18,8 +17,7 @@ unsafe fn test_dangling_symlink(dir_fd: wasi::Fd) {
|
||||
// Try to open it as a file with O_NOFOLLOW.
|
||||
assert_errno!(
|
||||
wasi::path_open(dir_fd, 0, "symlink", 0, 0, 0, 0)
|
||||
.expect_err("opening a dangling symlink as a file")
|
||||
.raw_error(),
|
||||
.expect_err("opening a dangling symlink as a file"),
|
||||
wasi::ERRNO_LOOP
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user