Update WASI tests to use wasi crate v0.9.0 (#743)
This commit updates _all_ WASI test programs to use the latest version of the `wasi` crate (`v0.9.0`). While at it, it also unifies asserting error conditions across all test programs.
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
use wasi_old::wasi_unstable;
|
||||
|
||||
fn test_sched_yield() {
|
||||
assert!(wasi_unstable::sched_yield().is_ok(), "sched_yield");
|
||||
unsafe fn test_sched_yield() {
|
||||
wasi::sched_yield().expect("sched_yield");
|
||||
}
|
||||
|
||||
fn main() {
|
||||
// Run tests
|
||||
test_sched_yield()
|
||||
unsafe { test_sched_yield() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user