We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbe9e85 commit 5521ed9Copy full SHA for 5521ed9
src/tools/miri/tests/pass-dep/libc/libc-time.rs
@@ -1,14 +1,23 @@
1
//@ignore-target: windows # no libc time APIs on Windows
2
//@compile-flags: -Zmiri-disable-isolation
3
-use std::{env, mem, ptr};
4
use std::time::{Duration, Instant};
+use std::{env, mem, ptr};
5
6
fn main() {
7
test_clocks();
8
test_posix_gettimeofday();
9
test_nanosleep();
10
- test_clock_nanosleep_absolute();
11
- test_clock_nanosleep_relative();
+ #[cfg(any(
+ target_os = "freebsd",
12
+ target_os = "linux",
13
+ target_os = "android",
14
+ target_os = "solaris",
15
+ target_os = "illumos"
16
+ ))]
17
+ {
18
+ test_clock_nanosleep_absolute();
19
+ test_clock_nanosleep_relative();
20
+ }
21
test_localtime_r_epoch();
22
test_localtime_r_gmt();
23
test_localtime_r_pst();
0 commit comments