5 if ($ENV{'PERL_CORE'}){
7 unshift @INC, '../lib';
10 if (! $Config{'useithreads'}) {
11 print("1..0 # Skip: Perl not compiled with '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]);
34 print("1..63\n"); ### Number of tests that will be run ###
40 ### Start of Testing ###
43 my $s = "abcd" x (1000 + $_[0]);
45 while ($s =~ /(.)/g) { $t .= $1 }
46 print "not ok $_[0]\n" if $s ne $t;
50 ok($_, 1, "Multiple thread test");
51 push(@threads, threads->create('test9',$_));
57 ok($i++, 1, "Thread joined");