Skip to content

Commit 15bc573

Browse files
committed
---
yaml --- r: 4769 b: refs/heads/master c: 62ac9d0 h: refs/heads/master i: 4767: 1c784cc v: v3
1 parent a68dc3d commit 15bc573

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 94260fb91d3e8a11f39eafc1c21bc974713db166
2+
refs/heads/master: 62ac9d0b2e437dd6c469596299ac7eac8ed96918

trunk/src/lib/test.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,13 @@ fn run_test(test: &test_desc, to_task: &test_to_task) -> test_future {
336336
// we've got to treat our test functions as unsafe pointers. This function
337337
// only works with functions that don't contain closures.
338338
fn default_test_to_task(f: &fn()) -> task_id {
339-
/*
340339
fn run_task(fptr: *mutable fn() ) {
341340
configure_test_task();
342341
// Run the test
343342
(*fptr)()
344343
}
345344
let fptr = ptr::addr_of(f);
346-
*/
347-
//ret task::_spawn(bind run_task(fptr));
348-
task::spawn(f)
345+
ret task::spawn(bind run_task(fptr));
349346
}
350347

351348
// Call from within a test task to make sure it's set up correctly

0 commit comments

Comments
 (0)