summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-03 01:45:45 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-03 01:45:45 +0000
commit1255842222d74612a763d6a1e3384771918fd55a (patch)
treea0468b4c4fc8ea81bea177cd11abc85685c0d217 /t/harness
parent38efdb82c659a45925093d890b9a6cb896cb9c47 (diff)
downloadperl-1255842222d74612a763d6a1e3384771918fd55a.tar.gz
Make harness warning-free when running with -Mdiagnostics
p4raw-id: //depot/perl@25966
Diffstat (limited to 't/harness')
-rw-r--r--t/harness4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/harness b/t/harness
index e3e02f5ced..b5e3e872f1 100644
--- a/t/harness
+++ b/t/harness
@@ -16,7 +16,7 @@ use Test::Harness;
$Test::Harness::switches = ""; # Too much noise otherwise
$Test::Harness::verbose = shift if @ARGV && $ARGV[0] eq '-v';
-if ($ARGV[0] eq '-torture') {
+if ($ARGV[0] && $ARGV[0] eq '-torture') {
shift;
$torture = 1;
}
@@ -54,7 +54,7 @@ sub _populate_hash {
return map {$_, 1} split /\s+/, $_[0];
}
-if ($ARGV[0]=~/^-re/) {
+if ($ARGV[0] && $ARGV[0]=~/^-re/) {
if ($ARGV[0]!~/=/) {
shift;
$re=join "|",@ARGV;