Files
wasmtime/crates/test-programs/wasi-tests/src/bin/sched_yield.rs
Jakub Konka 51f3ac0c45 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.
2019-12-24 13:04:14 -08:00

9 lines
146 B
Rust

unsafe fn test_sched_yield() {
wasi::sched_yield().expect("sched_yield");
}
fn main() {
// Run tests
unsafe { test_sched_yield() }
}