summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2010-12-23 18:03:00 +0100
committerVincent Pit <perl@profvince.com>2010-12-23 18:03:00 +0100
commitb296285b4ca65486f2c1f6be30234679351f0c2b (patch)
tree7d111970d21fc5444e8d5aa17ba22b949c449c59 /t/test.pl
parent50afc8f8e1db17eaed554bcc3f6c964fa9a822d9 (diff)
downloadperl-b296285b4ca65486f2c1f6be30234679351f0c2b.tar.gz
Quote 'threads' in test.pl
If unquoted, it may throw a warning when threads.pm can't be loaded.
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index b58013df77..088c7e3a76 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -981,7 +981,7 @@ sub watchdog ($;$)
# Use a watchdog thread because either 'threads' is loaded,
# or fork() failed
if (eval 'require threads; 1') {
- threads->create(sub {
+ 'threads'->create(sub {
# Load POSIX if available
eval { require POSIX; };