diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-07-26 18:34:29 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-07-26 18:39:55 -0700 |
| commit | bcb5c4d54f601d6066d6fa463390d3d8b30f53b7 (patch) | |
| tree | 2bfafd74e41a0ec547d6c1339282e6b696ff7680 /src/test/stdtest | |
| parent | 1c780b420308cc9f57a5cb5b9619d43c1a4e6f44 (diff) | |
| download | rust-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.rs | 4 |
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; } |
