about summary refs log tree commit diff
path: root/src/test/stdtest
diff options
context:
space:
mode:
authorEric Holk <eholk@mozilla.com>2011-08-13 15:20:11 -0700
committerEric Holk <eholk@mozilla.com>2011-08-15 09:26:52 -0700
commitbe7325073acb63ed76861de387c6035d714c26db (patch)
tree551adfe941a9d543958e764b45b6aca1fc94bdc1 /src/test/stdtest
parentc3535f58427aed5aed891f302de728b0b809838c (diff)
Removed spawn and task from the parser. Updated all the tests except for the benchmarks.
Diffstat (limited to 'src/test/stdtest')
-rw-r--r--src/test/stdtest/task.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/stdtest/task.rs b/src/test/stdtest/task.rs
index 1c48b6308fa..4d689bcb36a 100644
--- a/src/test/stdtest/task.rs
+++ b/src/test/stdtest/task.rs
@@ -7,22 +7,22 @@ fn test_sleep() { task::sleep(1000000u); }
 #[test]
 fn test_unsupervise() {
     fn f() { task::unsupervise(); fail; }
-    spawn f();
+    task::_spawn(bind f());
 }
 
 #[test]
 fn test_join() {
     fn winner() { }
 
-    let wintask = spawn winner();
+    let wintask = task::_spawn(bind winner());
 
-    assert (task::join(wintask) == task::tr_success);
+    assert (task::join_id(wintask) == task::tr_success);
 
     fn failer() { task::unsupervise(); fail; }
 
-    let failtask = spawn failer();
+    let failtask = task::_spawn(bind failer());
 
-    assert (task::join(failtask) == task::tr_failure);
+    assert (task::join_id(failtask) == task::tr_failure);
 }
 
 #[test]