From b1ce7a38a6c03ddff23ef7e59e74cab6452ed9b0 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Thu, 1 Oct 2020 01:51:32 +0200 Subject: [PATCH] Disable condvar::two_mutexes test on non-unix platforms. Condvars are no longer guaranteed to panic in this case on all platforms. At least the unix implementation still does. --- library/std/src/sync/condvar/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sync/condvar/tests.rs b/library/std/src/sync/condvar/tests.rs index 86d099ee3a1..6757707cd95 100644 --- a/library/std/src/sync/condvar/tests.rs +++ b/library/std/src/sync/condvar/tests.rs @@ -191,7 +191,7 @@ fn wait_timeout_wake() { #[test] #[should_panic] -#[cfg_attr(target_os = "emscripten", ignore)] +#[cfg_attr(not(unix), ignore)] fn two_mutexes() { let m = Arc::new(Mutex::new(())); let m2 = m.clone();