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

21 lines
313 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::spawn {|| die(); };
}
fn main() {
for uint::range(0u, 100u) {|_i|
let builder = task::builder();
2012-02-18 18:34:42 -06:00
task::unsupervise(builder);
task::run(builder) {|| iloop(); };
}
}