rust/src/test/run-pass/lots-a-fail.rs

20 lines
252 B
Rust
Raw Normal View History

// xfail-win32 leaks
use std;
import task;
import comm;
import uint;
2012-01-04 23:14:53 -06:00
fn die() {
fail;
}
2012-01-04 23:14:53 -06:00
fn iloop() {
task::unsupervise();
2012-01-04 23:14:53 -06:00
task::spawn {|| die(); };
}
fn main() {
uint::range(0u, 100u) {|_i|
2012-01-04 23:14:53 -06:00
task::spawn {|| iloop(); };
}
}