tests: list available tests if an invalid test name is given

This commit is contained in:
Peter Hutterer 2013-09-11 16:08:47 +10:00 committed by Kristian Høgsberg
parent 534f0a4dd1
commit 9715d4db54

View File

@ -82,6 +82,7 @@ int main(int argc, char *argv[])
t = find_test(argv[1]);
if (t == NULL) {
fprintf(stderr, "unknown test: \"%s\"\n", argv[1]);
list_tests();
exit(EXIT_FAILURE);
}