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 <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2015-02-18 16:19:59 +00:00
parent 55cc132b32
commit 8fb19782f8
14 changed files with 40 additions and 26 deletions
+1 -1
View File
@@ -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;