We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c99e110 commit ed6f9bbCopy full SHA for ed6f9bb
src/test/run-pass/lib-task.rs
@@ -1,10 +1,22 @@
1
2
3
// xfail-stage0
4
-// xfail-stage1
5
-// xfail-stage2
6
-// xfail-stage3
+
7
use std;
8
-import std::_task;
+import std::task;
+fn test_sleep() { task::sleep(1000000u); }
9
10
+fn test_unsupervise() {
11
+ fn f() {
12
+ task::unsupervise();
13
+ fail;
14
+ }
15
+ spawn f();
16
+}
17
-fn main() { _task::sleep(1000000u); }
18
+fn main() {
19
+ // FIXME: Why aren't we running this?
20
+ //test_sleep();
21
+ test_unsupervise();
22
0 commit comments