Skip to content

Commit

Permalink
No point in having max_failures >= runs; it would never trigger.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Broadwell committed Jan 12, 2015
1 parent 72eed49 commit 7dbbb69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion timeall
Expand Up @@ -319,7 +319,8 @@ sub run_all_tests {
my $overhead_runs = $startup_runs;
my $enough_time = $opt->{'enough-time'} || $DEFAULT{ENOUGH_TIME};
my $scale_points = $opt->{'min-scaling-points'} || $DEFAULT{MIN_SCALING_POINTS};
my $max_failures = $opt->{'max-failures'} // $DEFAULT{MAX_FAILURES};
my $max_failures = min($opt->{'max-failures'} // $DEFAULT{MAX_FAILURES},
$runs - 1);
my $timeout = $opt->{timeout} || $DEFAULT{TIMEOUT};
my $verbose = $opt->{verbose};
my $empty_test = $TESTS{e}[0];
Expand Down

0 comments on commit 7dbbb69

Please sign in to comment.