Actually commit the state infomation at the end of a test run.
Nicholas Clark [Wed, 14 Jan 2009 10:34:23 +0000 (10:34 +0000)]
Reduces my elapsed time by about 5% threaded or unthreaded on the second run.

t/harness

index e6e8d9e..9c57626 100644 (file)
--- a/t/harness
+++ b/t/harness
@@ -236,6 +236,11 @@ if ($jobs) {
                         $state->observe_test(@_);
                     }
                    );
+       $h->callback(
+                    after_runtests => sub {
+                        $state->commit(@_);
+                    }
+                   );
     }
     $h->runtests(@tests);
 } else {