From 5f64702c2754f26298640cbbe1e1860bf13c63f2 Mon Sep 17 00:00:00 2001 From: Nick Ing-Simmons Date: Mon, 28 Jan 2002 07:25:58 +0000 Subject: [PATCH] Skip new threads::shared test unless -Duseithreads p4raw-id: //depot/perlio@14461 --- ext/threads/shared/t/0nothread.t | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ext/threads/shared/t/0nothread.t b/ext/threads/shared/t/0nothread.t index 9b08343..0ce4e6e 100644 --- a/ext/threads/shared/t/0nothread.t +++ b/ext/threads/shared/t/0nothread.t @@ -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); -- 2.7.4