Add a thread test (just runs the basic one in a thread)
[p5sagit/Devel-GlobalDestruction.git] / t / 02_thread.t
CommitLineData
844f2408 1use Config;
2BEGIN {
3 unless ($Config{useithreads}) {
4 print "1..0 # SKIP your perl does not support ithreads\n";
5 exit 0;
6 }
7}
8
9BEGIN {
10 unless (eval { require threads }) {
11 print "1..0 # SKIP threads.pm not installed\n";
12 exit 0;
13 }
14}
15
16use threads;
17use warnings;
18use strict;
19
20my $t = threads->create(sub { do 't/01_basic.t' });
21$t->join;
22
23exit 0;