2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
2011-05-26 16:42:17 -07:00
|
|
|
// xfail-stage0
|
2011-07-14 18:50:22 -07:00
|
|
|
|
2010-08-11 21:23:34 -07:00
|
|
|
use std;
|
2011-07-14 18:50:22 -07:00
|
|
|
import std::task;
|
|
|
|
|
|
|
|
fn test_sleep() { task::sleep(1000000u); }
|
|
|
|
|
|
|
|
fn test_unsupervise() {
|
|
|
|
fn f() {
|
|
|
|
task::unsupervise();
|
|
|
|
fail;
|
|
|
|
}
|
|
|
|
spawn f();
|
|
|
|
}
|
2010-08-11 21:23:34 -07:00
|
|
|
|
2011-07-14 18:50:22 -07:00
|
|
|
fn main() {
|
|
|
|
// FIXME: Why aren't we running this?
|
|
|
|
//test_sleep();
|
|
|
|
test_unsupervise();
|
|
|
|
}
|