From 26b8b862cde607b9aaf2fe4f37cf720f0246290d Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 13 Jul 2009 18:06:01 +0200 Subject: [PATCH] Revert "Fix test timing" This reverts commit 9f1ba4e01a4b25155ff527a52801aff549e6a1f6. This was totally insane and actually broke the test suite. --- lib/TAP/Harness/JUnit.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/TAP/Harness/JUnit.pm b/lib/TAP/Harness/JUnit.pm index 17ca97d..7f3b148 100644 --- a/lib/TAP/Harness/JUnit.pm +++ b/lib/TAP/Harness/JUnit.pm @@ -50,7 +50,7 @@ These options are added (compared to I): Name of the file XML output will be saved to. In case this argument is ommited, default of "junit_output.xml" is used and a warning is issued. -=item notimes (DEPRECATED) +=item notimes If provided (and true), test case times will not be recorded. @@ -156,10 +156,7 @@ sub parsetest { my $self = shift; my $file = shift; my $name = shift; - my $parser = shift; - - my $time = $parser->{end_time} - $parser->{start_time}; - $time = 0 if $self->{__notimes}; + my $time = shift; my $badretval; @@ -335,7 +332,7 @@ sub runtests { } } - $self->parsetest ($file, $comment, $aggregator->{parser_for}->{$file}); + $self->parsetest ($file, $comment, $self->{__notimes} ? 0 : $aggregator->elapsed->[0]); } # Format XML output -- 2.11.4.GIT