1st attempt at skipping broke threads case.
authorNick Ing-Simmons <nik@tiuk.ti.com>
Mon, 28 Jan 2002 08:09:53 +0000 (08:09 +0000)
committerNick Ing-Simmons <nik@tiuk.ti.com>
Mon, 28 Jan 2002 08:09:53 +0000 (08:09 +0000)
p4raw-id: //depot/perlio@14462

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");
+    }
 }