tlib: catch unknown options in tlib_run_tests

This commit is contained in:
Bill Zissimopoulos 2016-10-16 11:27:01 -07:00
parent 3ed7847d84
commit 222da362ec

View File

@ -131,6 +131,11 @@ void tlib_run_tests(int argc, char *argv[])
no_abort = 1; no_abort = 1;
else if (0 == strcmp("--repeat-forever", a)) else if (0 == strcmp("--repeat-forever", a))
repeat = ULONG_MAX; repeat = ULONG_MAX;
else
{
fprintf(stderr, "tlib_run_tests: unknown option %s\n", a);
exit(2);
}
} }
else else
match_any = 0; match_any = 0;