From: Graham Barr Date: Tue, 27 Jul 1999 08:09:25 +0000 (-0500) Subject: cosmetic testsuite patch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=09ac174e4b3f8744bbc9c1763e4c2dbccd2937c7;p=p5sagit%2Fp5-mst-13.2.git cosmetic testsuite patch To: Perl5 Porters Subject: 5.005_58 build Message-ID: <19990727080925.F4683@dal.asp.ti.com> p4raw-id: //depot/perl@3802 --- diff --git a/t/op/grent.t b/t/op/grent.t index c9d3797..761d8b9 100755 --- a/t/op/grent.t +++ b/t/op/grent.t @@ -77,7 +77,11 @@ while () { warn "# Your $where line $. is empty.\n"; next; } - last if $n == $max; + if ($n == $max) { + local $/; + my $junk = ; + last; + } # In principle we could whine if @s != 4 but do we know enough # of group file formats everywhere? if (@s == 4) { diff --git a/t/op/pwent.t b/t/op/pwent.t index 788d2f2..ca14a99 100755 --- a/t/op/pwent.t +++ b/t/op/pwent.t @@ -79,7 +79,11 @@ while () { warn "# Your $where line $. is empty.\n"; next; } - last if $n == $max; + if ($n == $max) { + local $/; + my $junk = ; + last; + } # In principle we could whine if @s != 7 but do we know enough # of passwd file formats everywhere? if (@s == 7) {