Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a regression in timeall that broke the ability to save partial ti…
…ming results if the user ctrl-c's in the middle of a chain of tests
  • Loading branch information
japhb committed Jun 4, 2013
1 parent b5ff52a commit 8a6d7d7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions timeall
Expand Up @@ -75,8 +75,7 @@ sub MAIN {
);

# Run tests
my $results = eval { run_all_tests($main_opt) };
warn "\n$@\n" if $@;
my $results = run_all_tests($main_opt);
$run{end_time} = time;

# Output results
Expand Down Expand Up @@ -225,8 +224,8 @@ sub run_all_tests {
$startup->{$_} = $startup->{$_}{1} for keys %$startup;

my @results;
run_tests(\@TESTS, \@results, $startup, $runs, $overhead_runs, $enough_time);

eval { run_tests(\@TESTS, \@results, $startup, $runs, $overhead_runs, $enough_time) };
warn "\n$@\n" if $@;
return \@results;
}

Expand Down

0 comments on commit 8a6d7d7

Please sign in to comment.