5 require($ENV{PERL_CORE} ? '../../t/test.pl' : './t/test.pl');
8 if (! $Config{'useithreads'}) {
9 skip_all(q/Perl not compiled with 'useithreads'/);
15 use ExtUtils::testlib;
19 ### Start of Testing ###
26 $localtime{$_} = localtime($_);
31 $threads[$_] = threads->create(sub {
33 my $localtime = $localtime{$arg};
36 my $lt = localtime($arg);
37 if ($localtime ne $lt) {
46 is($threads[$_]->join(), 0, 'localtime() thread-safe');