diff options
Diffstat (limited to 'test/testutil')
-rw-r--r-- | test/testutil/options.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/testutil/options.c b/test/testutil/options.c index 9a32d1f..b5c0739 100644 --- a/test/testutil/options.c +++ b/test/testutil/options.c @@ -15,6 +15,21 @@ static int used[100] = { 0 }; +int test_skip_common_options(void) +{ + OPTION_CHOICE_DEFAULT o; + + while ((o = (OPTION_CHOICE_DEFAULT)opt_next()) != OPT_EOF) { + switch (o) { + case OPT_TEST_CASES: + break; + default: + case OPT_ERR: + return 0; + } + } + return 1; +} size_t test_get_argument_count(void) { |