2012-01-11 17:10:36 -06:00
|
|
|
// xfail-win32
|
2012-01-11 14:37:09 -06:00
|
|
|
// error-pattern:ran out of stack
|
|
|
|
|
|
|
|
// Test that the task fails after hiting the recursion limit, but
|
|
|
|
// that it doesn't bring down the whole proc
|
|
|
|
|
|
|
|
fn main() {
|
2012-03-12 17:52:30 -05:00
|
|
|
let builder = task::task_builder();
|
2012-02-18 18:34:42 -06:00
|
|
|
task::unsupervise(builder);
|
|
|
|
task::run(builder) {||
|
2012-01-11 14:37:09 -06:00
|
|
|
fn f() { f() };
|
|
|
|
f();
|
|
|
|
};
|
|
|
|
}
|