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;
18 BEGIN { print "1..64\n" };
28 my ($id, $ok, $name) = @_;
30 # You have to do it this way or VMS will get confused.
31 print $ok ? "ok $id - $name\n" : "not ok $id - $name\n";
33 printf "# Failed test at line %d\n", (caller)[2] unless $ok;
44 ok($_,1,"Multiple thread test");
45 push @threads ,threads->create(sub { my $i = shift; for(1..500000) { $i++}},$_);
51 ok($i++,1,"Thread joined");