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;
42 my $s = "abcd" x (1000 + $_[0]);
44 while ($s =~ /(.)/g) { $t .= $1 }
45 print "not ok $_[0]\n" if $s ne $t;
49 ok($_,1,"Multiple thread test");
50 push @threads ,threads->create('test9',$_);
56 ok($i++,1,"Thread joined");