We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0767bf commit 9dae4cfCopy full SHA for 9dae4cf
src/libcore/private.rs
@@ -493,7 +493,7 @@ pub mod tests {
493
res.recv();
494
}
495
496
- #[test] #[should_fail] #[ignore(reason = "random red")]
+ #[test] #[should_fail] #[ignore(cfg(windows))]
497
pub fn exclusive_unwrap_conflict() {
498
let x = exclusive(~~"hello");
499
let x2 = ~mut Some(x.clone());
@@ -505,7 +505,8 @@ pub mod tests {
505
506
assert unwrap_exclusive(x) == ~~"hello";
507
let res = option::swap_unwrap(&mut res);
508
- res.recv();
+ // See #4689 for why this can't be just "res.recv()".
509
+ assert res.recv() == task::Success;
510
511
512
#[test] #[ignore(cfg(windows))]
0 commit comments