Browse Source

TEMPORARY: poll_oneoff test uses CLOCKID_REALTIME instead of MONOTONIC

the scheduler does not support the monotonic clock yet, i will fix this
soon
pull/2629/head
Pat Hickey 4 years ago
parent
commit
f667263d9c
  1. 4
      crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs

4
crates/test-programs/wasi-tests/src/bin/poll_oneoff.rs

@ -28,7 +28,7 @@ unsafe fn test_empty_poll() {
unsafe fn test_timeout() {
let clock = wasi::SubscriptionClock {
id: wasi::CLOCKID_MONOTONIC,
id: wasi::CLOCKID_REALTIME,
timeout: 5_000_000u64, // 5 milliseconds
precision: 0,
flags: 0,
@ -61,7 +61,7 @@ unsafe fn test_timeout() {
unsafe fn test_stdin_read() {
let clock = wasi::SubscriptionClock {
id: wasi::CLOCKID_MONOTONIC,
id: wasi::CLOCKID_REALTIME,
timeout: 5_000_000u64, // 5 milliseconds
precision: 0,
flags: 0,

Loading…
Cancel
Save