Ooops. Not everybody does threads.
Jarkko Hietaniemi [Thu, 2 May 2002 02:47:22 +0000 (02:47 +0000)]
p4raw-id: //depot/perl@16323

ext/threads/shared/t/semaphore.t

index b1858ec..9865e23 100644 (file)
@@ -1,3 +1,13 @@
+BEGIN {
+    chdir 't' if -d 't';
+    push @INC ,'../lib';
+    require Config; import Config;
+    unless ($Config{'useithreads'}) {
+        print "1..0 # Skip: no threads\n";
+        exit 0;
+    }
+}
+
 print "1..1\n";
 use threads;
 use threads::shared::semaphore;