mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
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:
@@ -503,7 +503,7 @@ int main(int argc, char **argv)
|
||||
options.prewrap_space = 21;
|
||||
options.buffers = 10;
|
||||
|
||||
igt_simple_init_parse_opts(argc, argv, "n:bvt:dp:ri:", long_options,
|
||||
igt_simple_init_parse_opts(&argc, argv, "n:bvt:dp:ri:", long_options,
|
||||
help, parse_options);
|
||||
|
||||
card_index = drm_get_card();
|
||||
|
||||
Reference in New Issue
Block a user