use strict;
use warnings;
+use Config qw/%Config/;
+
+BEGIN {
+ if (!$Config{useithreads}) {
+ require Test::More;
+ Test::More->import;
+ plan(skip_all => 'This Perl wasn\'t built to support threads');
+ }
+}
+
use threads; # Before Test::More
use threads::shared;