rust/src/test/run-pass/lots-a-fail.rs
2012-05-26 02:28:00 -07:00

21 lines
313 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(); };
}
}