summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2015-05-09 14:49:11 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2015-05-09 14:49:11 +0100
commit2dcf63953dd1d0578e22a4f2764bc8e4b654e555 (patch)
treecaa404a94bf8574c340e4422e48976668e896698 /t
parent416c06fc852c00a948ade2fd39e7bf1b9f00ca9d (diff)
downloadperl-2dcf63953dd1d0578e22a4f2764bc8e4b654e555.tar.gz
Do not use bareword TERM or KILL in kill() call in test watchdog process
Diffstat (limited to 't')
-rw-r--r--t/test.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index ef33e88e9c..7063506e27 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -1591,7 +1591,7 @@ sub watchdog ($;$)
my $sig = $is_vms ? 'TERM' : 'KILL';
my $cmd = _create_runperl( prog => "sleep($timeout);" .
"warn qq/# $timeout_msg" . '\n/;' .
- "kill($sig, $pid_to_kill);");
+ "kill(q/$sig/, $pid_to_kill);");
$watchdog = system(1, $cmd);
};
if ($@ || ($watchdog <= 0)) {