From: Nicholas Clark Date: Fri, 18 Jun 2004 13:11:31 +0000 (+0000) Subject: Skip test if perl configured without threads::shared X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a73a1357d5e6be27adb5d67469939179dfdc53b2;p=p5sagit%2Fp5-mst-13.2.git Skip test if perl configured without threads::shared p4raw-id: //depot/perl@22954 --- diff --git a/ext/threads/shared/t/disabled.t b/ext/threads/shared/t/disabled.t index 067cf25..1add2b8 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.