about summary refs log tree commit diff
path: root/src/test/stdtest
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-07-26 18:34:29 -0700
committerBrian Anderson <banderson@mozilla.com>2011-07-26 18:39:55 -0700
commitbcb5c4d54f601d6066d6fa463390d3d8b30f53b7 (patch)
tree2bfafd74e41a0ec547d6c1339282e6b696ff7680 /src/test/stdtest
parent1c780b420308cc9f57a5cb5b9619d43c1a4e6f44 (diff)
downloadrust-bcb5c4d54f601d6066d6fa463390d3d8b30f53b7.tar.gz
rust-bcb5c4d54f601d6066d6fa463390d3d8b30f53b7.zip
Run compile tests in a way that's safe in a multithreaded environment
In theory. There's still something leaking but I hope it's no longer due to
the test runner doing unsafe things.

This is a pretty nasty patch, working around limitations in the type and task
systems, and it makes the std::test API a little uglier.
Diffstat (limited to 'src/test/stdtest')
-rw-r--r--src/test/stdtest/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/stdtest/test.rs b/src/test/stdtest/test.rs
index ba69674b030..65c1a049f93 100644
--- a/src/test/stdtest/test.rs
+++ b/src/test/stdtest/test.rs
@@ -15,7 +15,7 @@ fn do_not_run_ignored_tests() {
                     fn = f,
                     ignore = true);
 
-    test::run_test(desc);
+    test::run_test(desc, test::default_test_to_task);
 
     assert ran == false;
 }
@@ -26,7 +26,7 @@ fn ignored_tests_result_in_ignored() {
     auto desc = rec(name = "whatever",
                     fn = f,
                     ignore = true);
-    auto res = test::run_test(desc).wait();
+    auto res = test::run_test(desc, test::default_test_to_task).wait();
     assert res == test::tr_ignored;
 }