Skip to content

Commit b1ce7a3

Browse files
committed
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.
1 parent f3837e7 commit b1ce7a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sync/condvar/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ fn wait_timeout_wake() {
191191

192192
#[test]
193193
#[should_panic]
194-
#[cfg_attr(target_os = "emscripten", ignore)]
194+
#[cfg_attr(not(unix), ignore)]
195195
fn two_mutexes() {
196196
let m = Arc::new(Mutex::new(()));
197197
let m2 = m.clone();

0 commit comments

Comments
 (0)