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:
parent
94260fb91d
commit
62ac9d0b2e
1 changed files with 1 additions and 4 deletions
|
@ -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
|
// we've got to treat our test functions as unsafe pointers. This function
|
||||||
// only works with functions that don't contain closures.
|
// only works with functions that don't contain closures.
|
||||||
fn default_test_to_task(f: &fn()) -> task_id {
|
fn default_test_to_task(f: &fn()) -> task_id {
|
||||||
/*
|
|
||||||
fn run_task(fptr: *mutable fn() ) {
|
fn run_task(fptr: *mutable fn() ) {
|
||||||
configure_test_task();
|
configure_test_task();
|
||||||
// Run the test
|
// Run the test
|
||||||
(*fptr)()
|
(*fptr)()
|
||||||
}
|
}
|
||||||
let fptr = ptr::addr_of(f);
|
let fptr = ptr::addr_of(f);
|
||||||
*/
|
ret task::spawn(bind run_task(fptr));
|
||||||
//ret task::_spawn(bind run_task(fptr));
|
|
||||||
task::spawn(f)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call from within a test task to make sure it's set up correctly
|
// Call from within a test task to make sure it's set up correctly
|
||||||
|
|
Loading…
Reference in a new issue