From: Nicholas Clark Date: Wed, 14 Jan 2009 10:34:23 +0000 (+0000) Subject: Actually commit the state infomation at the end of a test run. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0b4436e8e06f0f88c3a1e061bf4e043a07bfcae3;p=p5sagit%2Fp5-mst-13.2.git Actually commit the state infomation at the end of a test run. Reduces my elapsed time by about 5% threaded or unthreaded on the second run. --- diff --git a/t/harness b/t/harness index e6e8d9e..9c57626 100644 --- 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 {