From d5de67a5a0719daffc9e5ed6d434c9feaf093fe7 Mon Sep 17 00:00:00 2001 From: JOE1994 Date: Thu, 2 Apr 2020 16:15:23 -0400 Subject: [PATCH] change cfg gate to enable testing Instant subtraction in Windows --- tests/run-pass/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-pass/time.rs b/tests/run-pass/time.rs index 264fa9de0352..aa02ac15388e 100644 --- a/tests/run-pass/time.rs +++ b/tests/run-pass/time.rs @@ -25,7 +25,7 @@ fn main() { let now2 = Instant::now(); assert!(now2 > now1); - #[cfg(target_os = "linux")] // TODO: macOS does not support Instant subtraction + #[cfg(not(target_os = "macos"))] // TODO: macOS does not support Instant subtraction { let diff = now2.duration_since(now1); assert_eq!(now1 + diff, now2);