Skip to content

Commit 9742148

Browse files
committed
Bring run-pass/spawn-fn up to date and un-XFAIL
1 parent d4a17ca commit 9742148

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/run-pass/spawn-fn.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// xfail-stage1
2-
// xfail-stage2
3-
// xfail-stage3
41
// -*- rust -*-
52

3+
use std;
4+
import std::task::yield;
5+
66
fn x(s: str, n: int) { log s; log n; }
77

88
fn main() {
99
spawn x("hello from first spawned fn", 65);
1010
spawn x("hello from second spawned fn", 66);
1111
spawn x("hello from third spawned fn", 67);
1212
let i: int = 30;
13-
while i > 0 { i = i - 1; log "parent sleeping"; yield; }
13+
while i > 0 { i = i - 1; log "parent sleeping"; yield(); }
1414
}

0 commit comments

Comments
 (0)