Additionally verify that input files have equal number of lines.
authorBen Pfaff <blp@gnu.org>
Thu, 14 Dec 2006 05:35:38 +0000 (05:35 +0000)
committerBen Pfaff <blp@gnu.org>
Thu, 14 Dec 2006 05:35:38 +0000 (05:35 +0000)
tests/formats/num-out-compare.pl

index 6bf0cb79a7e6fc2cbf4ce73277c9e8b5d0f2d02e..f43ef18d4f284006974acca5e6e2bdf6834f7df4 100644 (file)
@@ -83,6 +83,16 @@ while (defined (my $a = <EXPECTED>) && defined (my $b = <ACTUAL>)) {
        $errors++;
     }
 }
+while (<EXPECTED>) {
+    print "Extra lines in $ARGV[0]\n";
+    $errors++;
+    last;
+}
+while (<ACTUAL>) {
+    print "Extra lines in $ARGV[1]\n";
+    $errors++;
+    last;
+}
 if ($verbose) {
     print "$errors errors\n";
     if (!$exact) {