From 8fb19782f82f25249aaed0ff0e5fa6601dbb0e9d Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Wed, 18 Feb 2015 16:19:59 +0000 Subject: lib: remove handled option arguments from argv Remove options from argv that have been handled by getopt to allow additional non-option parameters to be processed in the test application. This fixes issues when using options such as --debug with tests that accept additional non-option parameters. Signed-off-by: Thomas Wood --- tests/kms_setmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_setmode.c') diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index f13871ef..8e6afbff 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -699,7 +699,7 @@ int main(int argc, char **argv) int i; int ret; - ret = igt_subtest_init_parse_opts(argc, argv, "dt:", NULL, help_str, + ret = igt_subtest_init_parse_opts(&argc, argv, "dt:", NULL, help_str, opt_handler); if (ret < 0) return ret == -1 ? 0 : ret; -- cgit v1.2.3