Skip to content

Commit 2511299

Browse files
committed
test: Don't fill queue in run-pass/send-iloop. Closes #1244
1 parent b8fcf0a commit 2511299

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/run-pass/send-iloop.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ fn iloop(&&_i: ()) {
1414
let p = comm::port::<()>();
1515
let c = comm::chan(p);
1616
while true {
17+
// Sending and receiving here because these actions yield,
18+
// at which point our child can kill us
1719
comm::send(c, ());
20+
comm::recv(p);
1821
}
1922
}
2023

0 commit comments

Comments
 (0)