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 2016-07-26 13:33:36 +02:00
parent 212564a0d1
commit 5e045eca90

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;
}