diff options
-rw-r--r-- | test/testframe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/testframe.c b/test/testframe.c index cebb558..b3bc378 100644 --- a/test/testframe.c +++ b/test/testframe.c @@ -212,6 +212,8 @@ void TestInfo(const char *ProgName) */ void TestParseCmdLine(int argc, char *argv[]) { + int ret_code; + while (argv++, --argc > 0){ if ((HDstrcmp(*argv, "-verbose") == 0) || (HDstrcmp(*argv, "-v") == 0)) { @@ -274,7 +276,9 @@ void TestParseCmdLine(int argc, char *argv[]) /* Call extra parsing function if provided. */ if (NULL != TestPrivateParser){ - TestPrivateParser(argc+1, argv-1); + ret_code=TestPrivateParser(argc+1, argv-1); + if (ret_code != 0) + exit(-1); } } |