projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
378ff5f
)
Additionally verify that input files have equal number of lines.
author
Ben Pfaff
<blp@gnu.org>
Thu, 14 Dec 2006 05:35:38 +0000
(
05:35
+0000)
committer
Ben Pfaff
<blp@gnu.org>
Thu, 14 Dec 2006 05:35:38 +0000
(
05:35
+0000)
tests/formats/num-out-compare.pl
patch
|
blob
|
history
diff --git
a/tests/formats/num-out-compare.pl
b/tests/formats/num-out-compare.pl
index 6bf0cb79a7e6fc2cbf4ce73277c9e8b5d0f2d02e..f43ef18d4f284006974acca5e6e2bdf6834f7df4 100644
(file)
--- a/
tests/formats/num-out-compare.pl
+++ b/
tests/formats/num-out-compare.pl
@@
-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) {