summaryrefslogtreecommitdiff
path: root/t/op/grent.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/grent.t')
-rwxr-xr-xt/op/grent.t6
1 files changed, 5 insertions, 1 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) {