From 4b0489dd31830efa93790872304f5f8d62282e3b Mon Sep 17 00:00:00 2001 From: Tim Kientzle <kientzle@FreeBSD.org> Date: Fri, 13 Jul 2007 15:09:07 +0000 Subject: [PATCH] Fix running individual tests via "libarchive_test <number> <number> ..." Approved by: re (blanket) --- lib/libarchive/test/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libarchive/test/main.c b/lib/libarchive/test/main.c index 21ecb8c4e177..b909545eaae8 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");