summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2007-07-13 15:09:07 +0000
committerkientzle <kientzle@FreeBSD.org>2007-07-13 15:09:07 +0000
commitcc97c4dd3b512399e445c9b55ad07ee44d05926d (patch)
treed5b78f6f0d34430b8098ba9118909adfbc946397 /lib
parent3220a0fc84411603c9bf97b1915541d6888bd537 (diff)
downloadFreeBSD-src-cc97c4dd3b512399e445c9b55ad07ee44d05926d.zip
FreeBSD-src-cc97c4dd3b512399e445c9b55ad07ee44d05926d.tar.gz
Fix running individual tests via "libarchive_test <number> <number> ..."
Approved by: re (blanket)
Diffstat (limited to 'lib')
-rw-r--r--lib/libarchive/test/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libarchive/test/main.c b/lib/libarchive/test/main.c
index 21ecb8c..b909545 100644
--- a/lib/libarchive/test/main.c
+++ b/lib/libarchive/test/main.c
@@ -294,7 +294,7 @@ int main(int argc, char **argv)
tests_run++;
}
} else {
- while (*(++argv) != NULL) {
+ while (*(argv) != NULL) {
i = atoi(*argv);
if (**argv < '0' || **argv > '9' || i < 0 || i >= limit) {
printf("*** INVALID Test %s\n", *argv);
@@ -304,6 +304,7 @@ int main(int argc, char **argv)
tests_failed++;
tests_run++;
}
+ argv++;
}
}
printf("\n");
OpenPOWER on IntegriCloud