summaryrefslogtreecommitdiff
path: root/ext/Thread/queue.t
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Thread/queue.t')
-rw-r--r--ext/Thread/queue.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/Thread/queue.t b/ext/Thread/queue.t
index 4672ba6ee7..5c1a7e763d 100644
--- a/ext/Thread/queue.t
+++ b/ext/Thread/queue.t
@@ -1,3 +1,15 @@
+BEGIN {
+ eval { require Config; import Config };
+ if ($@) {
+ print "1..0 # Skip: no Config\n";
+ exit(0);
+ }
+ if ($Config{extensions} !~ /\bThread\b/) {
+ print "1..0 # Skip: no use5005threads\n";
+ exit(0);
+ }
+}
+
use Thread;
use Thread::Queue;