Re: overriding builtins quirk
[p5sagit/p5-mst-13.2.git] / t / op / getpid.t
index dd06f00..f1a4063 100644 (file)
@@ -5,11 +5,14 @@
 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";
@@ -30,6 +33,5 @@ my $ppid2 : shared = 0;
 
 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');