Made threads test optional
Andy Grundman [Thu, 10 Nov 2005 03:46:04 +0000 (03:46 +0000)]
t/optional/threads.t [moved from t/unit/core/threads.t with 85% similarity]

similarity index 85%
rename from t/unit/core/threads.t
rename to t/optional/threads.t
index ae78f97..82c748a 100644 (file)
@@ -4,13 +4,16 @@ use strict;
 use warnings;\r
 \r
 use FindBin;\r
-use lib "$FindBin::Bin/../../live/lib";\r
+use lib "$FindBin::Bin/../live/lib";\r
 \r
 use Test::More;\r
 use Catalyst::Test 'TestApp';\r
 use Catalyst::Request;\r
 use Config;\r
 \r
+plan skip_all => 'set TEST_THREADS to enable this test'\r
+    unless $ENV{TEST_THREADS};\r
+\r
 if ( $Config{useithreads} && !$ENV{CATALYST_SERVER} ) {\r
     require threads;\r
     plan tests => 3;\r