From 30a13282bdb1bc17f62344ea7a025a2a6e68c60f Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 23 Oct 2011 16:49:19 +0100 Subject: [PATCH] bisect-runner.pl now runs the testcase for targets config.{sh,h} Previously for these two targets it assumed --test-build if a --match wasn't supplied, and never ran a test case if one was supplied. Now --test-build must be specified explicitly, otherwise the test case will be run. For example, this makes it easy to bisect using a testcase which greps config.sh or config.h. (Of course, one can do roughly this with the --match option, but this will match against all generated files, which may generate false positives.) --- Porting/bisect-runner.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl index 1fc7014..80598dc 100755 --- a/Porting/bisect-runner.pl +++ b/Porting/bisect-runner.pl @@ -1071,7 +1071,11 @@ if (-f 'config.sh') { if ($target =~ /config\.s?h/) { match_and_exit($target) if $match && -f $target; - report_and_exit(!-f $target, 'could build', 'could not build', $target); + report_and_exit(!-f $target, 'could build', 'could not build', $target) + if $options{'test-build'}; + + my $ret = system @ARGV; + report_and_exit($ret, 'zero exit from', 'non-zero exit from', "@ARGV"); } elsif (!-f 'config.sh') { # Skip if something went wrong with Configure -- 2.7.4