4 require Config; import Config;
5 unless ($Config{'useithreads'}) {
6 print "1..0 # Skip: no useithreads\n";
11 use ExtUtils::testlib;
13 BEGIN { print "1..64\n" };
23 my ($id, $ok, $name) = @_;
25 # You have to do it this way or VMS will get confused.
26 print $ok ? "ok $id - $name\n" : "not ok $id - $name\n";
28 printf "# Failed test at line %d\n", (caller)[2] unless $ok;
37 my $s = "abcd" x (1000 + $_);
39 while ($s =~ /(.)/g) { $t .= $1 }
40 print "not ok $_[0]\n" if $s ne $t;
44 ok($_,1,"Multiple thread test");
45 push @threads ,threads->create('test9',$_);
51 ok($i++,1,"Thread joined");