Skip to content

Commit

Permalink
Disable condvar::two_mutexes test on non-unix platforms.
Browse files Browse the repository at this point in the history
Condvars are no longer guaranteed to panic in this case on all
platforms. At least the unix implementation still does.
  • Loading branch information
m-ou-se committed Oct 2, 2020
1 parent f3837e7 commit b1ce7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sync/condvar/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b1ce7a3

Please sign in to comment.