Michael G. Schwern [Tue, 3 Sep 2002 17:48:24 +0000 (10:48 -0700)]
Message-ID: <
20020904004824.GG2701@ool-18b93024.dyn.optonline.net>
p4raw-id: //depot/perl@17841
BEGIN {
chdir 't' if -d 't';
@INC = qw(../lib);
+ require './test.pl';
}
use strict;
use Config;
+plan tests => 2;
+
BEGIN {
if (!$Config{useithreads}) {
print "1..0 # Skip: no ithreads\n";
new threads( sub { ($pid2, $ppid2) = ($$, getppid()); } ) -> join();
-print "1..2\n";
-print "not " if $pid != $pid2; print "ok 1 - pids\n";
-print "not " if $ppid != $ppid2; print "ok 2 - ppids\n";
+is($pid, $pid2, 'pids');
+is($ppid, $ppid2, 'ppids');