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.
9 lines
146 B
Rust
9 lines
146 B
Rust
unsafe fn test_sched_yield() {
|
|
wasi::sched_yield().expect("sched_yield");
|
|
}
|
|
|
|
fn main() {
|
|
// Run tests
|
|
unsafe { test_sched_yield() }
|
|
}
|