From f762a852d90df4d7b9db5210dc6090cbf7692d09 Mon Sep 17 00:00:00 2001 From: "Fred L. Drake, Jr." Date: Sun, 18 Nov 2001 13:56:01 +0000 Subject: [PATCH] Add a check for unknown command line options. --- expat/tests/runtests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index cd41f5cb..d70ee559 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -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);