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.
2 parents c316189 + 9dae4cf commit 1bc4e3fCopy full SHA for 1bc4e3f
src/libcore/private.rs
@@ -495,7 +495,7 @@ pub mod tests {
495
res.recv();
496
}
497
498
- #[test] #[should_fail] #[ignore(reason = "random red")]
+ #[test] #[should_fail] #[ignore(cfg(windows))]
499
pub fn exclusive_unwrap_conflict() {
500
let x = exclusive(~~"hello");
501
let x2 = ~mut Some(x.clone());
@@ -507,7 +507,8 @@ pub mod tests {
507
508
assert unwrap_exclusive(x) == ~~"hello";
509
let res = option::swap_unwrap(&mut res);
510
- res.recv();
+ // See #4689 for why this can't be just "res.recv()".
511
+ assert res.recv() == task::Success;
512
513
514
#[test] #[ignore(cfg(windows))]
0 commit comments