summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-28 07:23:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-28 07:23:48 +0000
commited4a2363e5ba36c3338e192e77076eec9e10f986 (patch)
tree8d1d5bcdfe3e4700694d93fc01f69e4b91c6f18e /t/op
parentffb4593ce8673bf9b750cef7f50a426a002fff80 (diff)
parent4365a96142729d7b3a9c9c8ae27b2ba9005938cf (diff)
downloadperl-ed4a2363e5ba36c3338e192e77076eec9e10f986.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@3809
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/grent.t6
-rwxr-xr-xt/op/pwent.t6
2 files changed, 10 insertions, 2 deletions
diff --git a/t/op/grent.t b/t/op/grent.t
index c9d3797533..761d8b9cf6 100755
--- a/t/op/grent.t
+++ b/t/op/grent.t
@@ -77,7 +77,11 @@ while (<GR>) {
warn "# Your $where line $. is empty.\n";
next;
}
- last if $n == $max;
+ if ($n == $max) {
+ local $/;
+ my $junk = <GR>;
+ 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 788d2f2701..ca14a99eec 100755
--- a/t/op/pwent.t
+++ b/t/op/pwent.t
@@ -79,7 +79,11 @@ while (<PW>) {
warn "# Your $where line $. is empty.\n";
next;
}
- last if $n == $max;
+ if ($n == $max) {
+ local $/;
+ my $junk = <PW>;
+ last;
+ }
# In principle we could whine if @s != 7 but do we know enough
# of passwd file formats everywhere?
if (@s == 7) {