3 unless ($Config{useithreads}) {
4 print "1..0 # SKIP your perl does not support ithreads\n";
10 unless (eval { require threads }) {
11 print "1..0 # SKIP threads.pm not installed\n";
19 our $had_error :shared;
20 END { $? = $had_error||0 }
26 if ($ENV{DEVEL_GLOBALDESTRUCTION_PP_TEST}) {
28 die 'no XS' if $_[1] eq 'Devel/GlobalDestruction/XS.pm';
33 # load it before spawning a thread, that's the whole point
34 require Devel::GlobalDestruction;
38 # just die so we don't need to deal with testcount skew
39 unless ( ($_[0]||'') eq 'arg' ) {
41 die "Argument passing failed!";
44 delete $INC{'t/01_basic.t'};
50 threads->create('do_test', 'arg')->join