mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
Fix running individual tests via "libarchive_test <number> <number> ..."
Approved by: re (blanket)
This commit is contained in:
parent
b906fea63d
commit
4b0489dd31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171428
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user