From: Vincent Pit Date: Sat, 20 Sep 2008 20:51:39 +0000 (+0200) Subject: Don't test threads if this perl wasn't built with ithreads enabled X-Git-Tag: v0.20~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=4bd887f284d695d973ce89a5f40e6528561b2d6d;p=perl%2Fmodules%2FVariable-Magic.git Don't test threads if this perl wasn't built with ithreads enabled --- diff --git a/t/40-threads.t b/t/40-threads.t index 9e4c11b..2215c59 100644 --- a/t/40-threads.t +++ b/t/40-threads.t @@ -3,6 +3,16 @@ use strict; use warnings; +use Config qw/%Config/; + +BEGIN { + if (!$Config{useithreads}) { + require Test::More; + Test::More->import; + plan(skip_all => 'This Perl wasn\'t built to support threads'); + } +} + use threads; # Before Test::More use threads::shared;