suppress scalar leak messages for known leaks (from
[p5sagit/p5-mst-13.2.git] / t / op / grent.t
index c9d3797..761d8b9 100755 (executable)
@@ -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) {