diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-07-18 17:17:34 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-07-23 15:23:54 +0100 |
commit | 82b424a419e48e08ae112345ba517a81609ce7eb (patch) | |
tree | 3d6839e9e88f8de2f87d16932d5707a1621413f8 /lib | |
parent | e2cef00896a3b68c4f91c94254c0d44fa36f3ad0 (diff) |
lib: don't ignore unknown options in multi-tests
None of the current tests have additional options that might make use of
any unknown options and igt_subtest_init_parse_opts is available that
integrates additional option parsing.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_core.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c index 72c77e67..0867c273 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -459,18 +459,7 @@ enum igt_log_level igt_log_level = IGT_LOG_INFO; */ void igt_subtest_init(int argc, char **argv) { - int ret; - - /* supress getopt errors about unknown options */ - opterr = 0; - - ret = igt_subtest_init_parse_opts(argc, argv, NULL, NULL, NULL, NULL); - if (ret < 0) - /* exit with no error for -h/--help */ - exit(ret == -1 ? 0 : ret); - - /* reset opt parsing */ - optind = 1; + igt_subtest_init_parse_opts(argc, argv, NULL, NULL, NULL, NULL); } /** |