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 7bba0ae commit 9728d14Copy full SHA for 9728d14
src/test/run-pass/pipe-select.rs
@@ -47,17 +47,19 @@ fn main() {
47
oneshot::server::waiting)
48
= x;
49
#error("selecting");
50
- let (i, _, _) = select(~[left, right]);
51
- #error("selected");
52
- assert i == 1;
+ let (i, m, _) = select(~[left, right]);
+ #error("selected %?", i);
+ if m != none {
53
+ assert i == 1;
54
+ }
55
});
56
57
let (c1, p1) = oneshot::init();
58
let (_c2, p2) = oneshot::init();
59
60
let c = send(c, (p1, p2));
61
- sleep(iotask, 1000);
62
+ sleep(iotask, 100);
63
64
signal(c1);
65
@@ -66,7 +68,7 @@ fn main() {
66
68
67
69
send(c, (p1, p2));
70
71
72
73
signal(c2);
74
0 commit comments