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.
This commit is contained in:
Brian Anderson 2011-08-17 12:08:43 -07:00
parent 94260fb91d
commit 62ac9d0b2e

View file

@ -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