5 if ($ENV{'PERL_CORE'}){
7 unshift @INC, '../lib';
10 unless ($Config{'useithreads'}) {
11 print "1..0 # Skip: no useithreads\n";
16 use ExtUtils::testlib;
19 my ($id, $ok, $name) = @_;
21 # You have to do it this way or VMS will get confused.
23 print("ok $id - $name\n");
25 print("not ok $id - $name\n");
26 printf("# Failed test at line %d\n", (caller)[2]);
32 BEGIN { $| = 1; print "1..12\n"};
42 $localtime{$_} = localtime($_);
48 my $retval = localtime(shift());
53 my $thread = threads->create(sub {
55 my $localtime = $localtime{$arg};
58 my $lt = localtime($arg);
59 if($localtime ne $lt) {
64 ok($mutex, ! $error, 'localtime safe');
67 push @threads, $thread;