Skip to content

Commit 05b88f1

Browse files
committed
---
yaml --- r: 44691 b: refs/heads/master c: 1bc4e3f h: refs/heads/master i: 44689: 1ccf778 44687: d315980 v: v3
1 parent 7048933 commit 05b88f1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c316189d155e233ea04241116b11956626c8e7a3
2+
refs/heads/master: 1bc4e3f6a21c3c5d92873f490b646358ea395f9e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/libcore/private.rs

Lines changed: 3 additions & 2 deletions
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)