1
Fork 0
rust/src/test/run-pass/lib-task.rs

22 lines
274 B
Rust
Raw Normal View History

// xfail-stage0
2011-07-14 18:50:22 -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();
}
2011-07-14 18:50:22 -07:00
fn main() {
// FIXME: Why aren't we running this?
//test_sleep();
test_unsupervise();
}