cosmetic testsuite patch
[p5sagit/p5-mst-13.2.git] / t / op / pwent.t
index 788d2f2..ca14a99 100755 (executable)
@@ -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) {