rust/src/test/run-pass/lots-a-fail.rs
2012-07-01 19:19:32 -07:00

21 lines
310 B
Rust

// xfail-win32 leaks
use std;
import task;
import comm;
import uint;
fn die() {
fail;
}
fn iloop() {
task::spawn(|| die() );
}
fn main() {
for uint::range(0u, 100u) |_i| {
let builder = task::builder();
task::unsupervise(builder);
task::run(builder, || iloop() );
}
}