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 --- lib/tests/igt_no_exit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/tests/igt_no_exit.c') diff --git a/lib/tests/igt_no_exit.c b/lib/tests/igt_no_exit.c index ba3fae0a..dc89b830 100644 --- a/lib/tests/igt_no_exit.c +++ b/lib/tests/igt_no_exit.c @@ -31,8 +31,9 @@ int main(int argc, char **argv) { char prog[] = "igt_no_exit"; char *fake_argv[] = {prog}; + int fake_argc = 1; - igt_subtest_init(1, fake_argv); + igt_subtest_init(fake_argc, fake_argv); igt_subtest("A") ; -- cgit v1.2.3