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:
@@ -23,9 +23,7 @@ unsafe fn test_directory_seek(dir_fd: wasi::Fd) {
|
||||
|
||||
// Attempt to seek.
|
||||
assert_errno!(
|
||||
wasi::fd_seek(fd, 0, wasi::WHENCE_CUR)
|
||||
.expect_err("seek on a directory")
|
||||
.raw_error(),
|
||||
wasi::fd_seek(fd, 0, wasi::WHENCE_CUR).expect_err("seek on a directory"),
|
||||
wasi::ERRNO_BADF
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user