summaryrefslogtreecommitdiff
path: root/Porting/bisect.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-11-17 17:59:22 +0100
committerNicholas Clark <nick@ccl4.org>2011-11-17 17:59:22 +0100
commit7cffc32dac68b4762a80190eeb650713328f6879 (patch)
tree4b47fa8610bdccec7a183934cef87262816431a4 /Porting/bisect.pl
parent9b404864a75de7047b7002b6a801a418f84a5a5b (diff)
downloadperl-7cffc32dac68b4762a80190eeb650713328f6879.tar.gz
Add --check-shebang to bisect-runner.pl, to avoid mistakes with #! lines
This allows bisect.pl to instruct bisect-runner.pl to check that the user's testcase is not a script with a #! line which will run an installed perl. This rapidly catches the potential error of specifying a test case that will not actually be tested with the bisect-build perl. Without this, the user may end up with an unexpected failure to bisect, and little clue as to what the actual problem is.
Diffstat (limited to 'Porting/bisect.pl')
-rwxr-xr-xPorting/bisect.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Porting/bisect.pl b/Porting/bisect.pl
index d7def6ea6e..d28e1c549c 100755
--- a/Porting/bisect.pl
+++ b/Porting/bisect.pl
@@ -34,7 +34,7 @@ die "Can't find bisect runner $runner" unless -f $runner;
if defined $dev1 && $dev0 == $dev1 && $ino0 == $ino1;
}
-system $^X, $runner, '--check-args', @ARGV and exit 255;
+system $^X, $runner, '--check-args', '--check-shebang', @ARGV and exit 255;
# We try these in this order for the start revision if none is specified.
my @stable = qw(perl-5.002 perl-5.003 perl-5.004 perl-5.005 perl-5.6.0