2011-10-20 16:00:09 -07:00
|
|
|
// xfail-win32 leaks
|
2011-09-16 09:30:20 -07:00
|
|
|
use std;
|
2011-12-13 16:25:51 -08:00
|
|
|
import task;
|
|
|
|
import comm;
|
|
|
|
import uint;
|
2011-09-16 09:30:20 -07:00
|
|
|
|
2012-01-04 21:14:53 -08:00
|
|
|
fn die() {
|
2011-09-16 09:30:20 -07:00
|
|
|
fail;
|
|
|
|
}
|
|
|
|
|
2012-01-04 21:14:53 -08:00
|
|
|
fn iloop() {
|
|
|
|
task::spawn {|| die(); };
|
2011-09-16 09:30:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2011-10-21 13:14:28 +02:00
|
|
|
uint::range(0u, 100u) {|_i|
|
2012-04-05 14:09:32 -07:00
|
|
|
let builder = task::builder();
|
2012-02-18 16:34:42 -08:00
|
|
|
task::unsupervise(builder);
|
|
|
|
task::run(builder) {|| iloop(); };
|
2011-10-21 14:12:12 +02:00
|
|
|
}
|
2011-09-16 09:30:20 -07:00
|
|
|
}
|