tests: fix the return value of test-wrap-argv

The script was returning success unless it failed on the last file.
This went unnoticed because sc_prohibit_long_lines forbids lines
longer than 90 characters in .arg[sv] files.
This commit is contained in:
Ján Tomko committed 2016-08-18 13:37:08 +02:00
1 parent 212564a0d1
commit 5e045eca90
1 file changed
+1 -1
+1 -1
View File
@@ -39,8 +39,8 @@ if (@ARGV[0] eq "--in-place") {
shift @ARGV;
}
$ret = 0;
foreach my $file (@ARGV) {
$ret = 0;
if (&rewrap($file) < 0) {
$ret = 1;
}