Fixed race condtions and deadlocks in interaction with
[p5sagit/p5-mst-13.2.git] / ext / threads / shared / t / 0nothread.t
index 0ce4e6e..af83a41 100644 (file)
@@ -1,11 +1,13 @@
 use strict;
-use Test::More ();
 use Config;
-if ($Config{'useithreads'}) {
-  Test::More->import( tests => 53 );
-}
-else {
-  Test::More->import(skip_all => "no useithreads");
+BEGIN {
+    require Test::More;
+    if ($Config{'useithreads'}) {
+       Test::More->import( tests => 53 );
+    }
+    else {
+       Test::More->import(skip_all => "no useithreads");
+    }
 }