diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-09-07 10:18:20 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-09-07 10:18:20 +0000 |
commit | cb5fdd89057107323f000050b37f8574253e2073 (patch) | |
tree | b5ae6cf29d95eeb0dbcdbcc934905a4b55274cbe /t/op/getpid.t | |
parent | e87ef8c0197c05592a0b7988f7f1af2f39f06465 (diff) | |
parent | 83d057904fcf43ccbeee0b8e23d13ba528a6cb6a (diff) | |
download | perl-cb5fdd89057107323f000050b37f8574253e2073.tar.gz |
Integrate mainline
p4raw-id: //depot/perlio@17851
Diffstat (limited to 't/op/getpid.t')
-rw-r--r-- | t/op/getpid.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/op/getpid.t b/t/op/getpid.t index dd06f006a6..f1a40636b4 100644 --- a/t/op/getpid.t +++ b/t/op/getpid.t @@ -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'); |