Add a check for unknown command line options.

This commit is contained in:
Fred L. Drake, Jr. 2001-11-18 13:56:01 +00:00
parent 3a1a7b9e6d
commit f762a852d9

View File

@ -274,6 +274,10 @@ main(int argc, char *argv[])
forking = 0;
forking_set = 1;
}
else {
fprintf(stderr, "runtests: unknown option '%s'\n", opt);
return 2;
}
}
if (forking_set)
srunner_set_fork_status(sr, forking ? CK_FORK : CK_NOFORK);