summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-06-18 13:11:31 +0000
committerNicholas Clark <nick@ccl4.org>2004-06-18 13:11:31 +0000
commita73a1357d5e6be27adb5d67469939179dfdc53b2 (patch)
tree11e44cba346d062fca98adbe6bbfc6e6f0aa926e /ext
parent2d423903636554795b22a7b943522322f8675856 (diff)
downloadperl-a73a1357d5e6be27adb5d67469939179dfdc53b2.tar.gz
Skip test if perl configured without threads::shared
p4raw-id: //depot/perl@22954
Diffstat (limited to 'ext')
-rw-r--r--ext/threads/shared/t/disabled.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/threads/shared/t/disabled.t b/ext/threads/shared/t/disabled.t
index 067cf2561e..1add2b89ee 100644
--- a/ext/threads/shared/t/disabled.t
+++ b/ext/threads/shared/t/disabled.t
@@ -5,6 +5,11 @@
BEGIN {
chdir 't';
@INC = '../lib';
+ require Config;
+ if (($Config::Config{'extensions'} !~ /\bthreads::shared\b/) ){
+ print "1..0 # Skip -- Perl configured without threads::shared module\n";
+ exit 0;
+ }
}
# Can't use Test::More, it turns threads on.