Skip to content

Commit 1bc4e3f

Browse files
committed
auto merge of #5078 : bblum/rust/incoming, r=brson
r? @brson
2 parents c316189 + 9dae4cf commit 1bc4e3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/private.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ pub mod tests {
495495
res.recv();
496496
}
497497
498-
#[test] #[should_fail] #[ignore(reason = "random red")]
498+
#[test] #[should_fail] #[ignore(cfg(windows))]
499499
pub fn exclusive_unwrap_conflict() {
500500
let x = exclusive(~~"hello");
501501
let x2 = ~mut Some(x.clone());
@@ -507,7 +507,8 @@ pub mod tests {
507507
}
508508
assert unwrap_exclusive(x) == ~~"hello";
509509
let res = option::swap_unwrap(&mut res);
510-
res.recv();
510+
// See #4689 for why this can't be just "res.recv()".
511+
assert res.recv() == task::Success;
511512
}
512513
513514
#[test] #[ignore(cfg(windows))]

0 commit comments

Comments
 (0)