Skip new threads::shared test unless -Duseithreads
Nick Ing-Simmons [Mon, 28 Jan 2002 07:25:58 +0000 (07:25 +0000)]
p4raw-id: //depot/perlio@14461

ext/threads/shared/t/0nothread.t

index 9b08343..0ce4e6e 100644 (file)
@@ -1,5 +1,13 @@
-use Test::More tests => 53;
 use strict;
+use Test::More ();
+use Config;
+if ($Config{'useithreads'}) {
+  Test::More->import( tests => 53 );
+}
+else {
+  Test::More->import(skip_all => "no useithreads");
+}
+
 
 my @array;
 my %hash;
@@ -58,6 +66,7 @@ ok((require threads::shared),"Require module");
 array(24,[],'Thing');
 hash(24,[],'Thing');
 
+
 import threads::shared;
 share(\@array);