Skip to content

Commit

Permalink
Don't test test_boottime_alarm_clock on platforms that don't have it.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 30, 2023
1 parent 3f4f369 commit a6e6a49
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/time/clocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ fn test_boottime_clock() {

/// Attempt to test that the boot alarm clock is monotonic. Time may or may not
/// advance, but it shouldn't regress.
#[cfg(any(
freebsdlike,
linux_kernel,
target_os = "fuchsia",
target_os = "openbsd"
))]
#[cfg(any(linux_kernel, target_os = "fuchsia"))]
#[test]
fn test_boottime_alarm_clock() {
use rustix::time::{clock_gettime_dynamic, DynamicClockId};
Expand Down

0 comments on commit a6e6a49

Please sign in to comment.