summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-14 10:34:23 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-14 10:34:23 +0000
commit0b4436e8e06f0f88c3a1e061bf4e043a07bfcae3 (patch)
tree2ca56fe952c207a3b31853a2d20ec80339aea654 /t/harness
parent61edc68382f612a884a3181266d6220ea3a727eb (diff)
downloadperl-0b4436e8e06f0f88c3a1e061bf4e043a07bfcae3.tar.gz
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.
Diffstat (limited to 't/harness')
-rw-r--r--t/harness5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/harness b/t/harness
index e6e8d9e8f1..9c57626d43 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 {