diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-02-18 16:19:59 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-02-25 16:48:25 +0000 |
commit | 8fb19782f82f25249aaed0ff0e5fa6601dbb0e9d (patch) | |
tree | 803568509acd7bfc35f9596cf3db1a59937c2ed4 /tests/gem_render_copy.c | |
parent | 55cc132b3219fbbf8c5705c674ef0f9a9b53d593 (diff) |
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>
Diffstat (limited to 'tests/gem_render_copy.c')
-rw-r--r-- | tests/gem_render_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c index 6348eee4..df1ac881 100644 --- a/tests/gem_render_copy.c +++ b/tests/gem_render_copy.c @@ -141,7 +141,7 @@ int main(int argc, char **argv) igt_render_copyfunc_t render_copy = NULL; int opt_dump_aub = igt_aub_dump_enabled(); - igt_simple_init_parse_opts(argc, argv, "da", NULL, NULL, opt_handler); + igt_simple_init_parse_opts(&argc, argv, "da", NULL, NULL, opt_handler); igt_fixture { data.drm_fd = drm_open_any_render(); |