Skip to content

Commit b240524

Browse files
committed
test: Fix deadlock in task-perf-linked-failure
1 parent 44403f7 commit b240524

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/bench/task-perf-linked-failure.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ fn grandchild_group(num_tasks: uint) {
3434

3535
for _ in range(0, num_tasks) {
3636
let ch = ch.clone();
37-
do task::spawn { // linked
37+
let mut t = task::task();
38+
t.linked();
39+
t.unwatched();
40+
do t.spawn { // linked
3841
ch.send(());
3942
let (p, _c) = stream::<()>();
4043
p.recv(); // block forever

0 commit comments

Comments
 (0)