Fix private::exclusive_unwrap_conflict test. Fixes #4689.

This commit is contained in:
Ben Blum 2013-02-21 19:42:18 -05:00
parent e0767bf24f
commit 9dae4cf1f0

View File

@ -493,7 +493,7 @@ pub mod tests {
res.recv();
}
#[test] #[should_fail] #[ignore(reason = "random red")]
#[test] #[should_fail] #[ignore(cfg(windows))]
pub fn exclusive_unwrap_conflict() {
let x = exclusive(~~"hello");
let x2 = ~mut Some(x.clone());
@ -505,7 +505,8 @@ pub mod tests {
}
assert unwrap_exclusive(x) == ~~"hello";
let res = option::swap_unwrap(&mut res);
res.recv();
// See #4689 for why this can't be just "res.recv()".
assert res.recv() == task::Success;
}
#[test] #[ignore(cfg(windows))]