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