From 62ac9d0b2e437dd6c469596299ac7eac8ed96918 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 17 Aug 2011 12:08:43 -0700 Subject: [PATCH] Restore test task setup This is needed in order for the test runner to continue on failure, and I don't see that it causes any problems. --- src/lib/test.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/test.rs b/src/lib/test.rs index 2b4d1f2714a0..682a177bdf8f 100644 --- a/src/lib/test.rs +++ b/src/lib/test.rs @@ -336,16 +336,13 @@ fn run_test(test: &test_desc, to_task: &test_to_task) -> test_future { // we've got to treat our test functions as unsafe pointers. This function // only works with functions that don't contain closures. fn default_test_to_task(f: &fn()) -> task_id { - /* fn run_task(fptr: *mutable fn() ) { configure_test_task(); // Run the test (*fptr)() } let fptr = ptr::addr_of(f); - */ - //ret task::_spawn(bind run_task(fptr)); - task::spawn(f) + ret task::spawn(bind run_task(fptr)); } // Call from within a test task to make sure it's set up correctly