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:
@@ -18,7 +18,7 @@ pub fn open_scratch_directory(path: &str) -> Result<wasi::Fd, String> {
|
||||
Ok(s) => s,
|
||||
Err(_) => break,
|
||||
};
|
||||
if stat.tag != wasi::PREOPENTYPE_DIR {
|
||||
if stat.tag != wasi::PREOPENTYPE_DIR.raw() {
|
||||
continue;
|
||||
}
|
||||
let mut dst = Vec::with_capacity(stat.u.dir.pr_name_len);
|
||||
@@ -122,8 +122,8 @@ macro_rules! assert_errno {
|
||||
}
|
||||
assert!( $( e == $i || )+ false,
|
||||
"expected errno {}; got {}",
|
||||
Alt(&[ $( wasi::errno_name($i) ),+ ]),
|
||||
wasi::errno_name(e),
|
||||
Alt(&[ $( $i.name() ),+ ]),
|
||||
e.name()
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user