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:
@@ -66,8 +66,7 @@ unsafe fn test_truncation_rights(dir_fd: wasi::Fd) {
|
||||
// wasi_unstable::RIGHT_PATH_FILESTAT_SET_SIZE right.
|
||||
assert_errno!(
|
||||
wasi::path_open(dir_fd, 0, "file", wasi::OFLAGS_TRUNC, 0, 0, 0)
|
||||
.expect_err("truncating a file without path_filestat_set_size right")
|
||||
.raw_error(),
|
||||
.expect_err("truncating a file without path_filestat_set_size right"),
|
||||
wasi::ERRNO_PERM
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user