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.
This commit is contained in:
Mara Bos 2020-10-01 01:51:32 +02:00
parent f3837e788b
commit b1ce7a38a6
1 changed files with 1 additions and 1 deletions

View File

@ -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();