tests: list available tests if an invalid test name is given
This commit is contained in:
committed by
Kristian Høgsberg
parent
534f0a4dd1
commit
9715d4db54
@@ -82,6 +82,7 @@ int main(int argc, char *argv[])
|
|||||||
t = find_test(argv[1]);
|
t = find_test(argv[1]);
|
||||||
if (t == NULL) {
|
if (t == NULL) {
|
||||||
fprintf(stderr, "unknown test: \"%s\"\n", argv[1]);
|
fprintf(stderr, "unknown test: \"%s\"\n", argv[1]);
|
||||||
|
list_tests();
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user