Add a check for unknown command line options.
This commit is contained in:
parent
3a1a7b9e6d
commit
f762a852d9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user