summaryrefslogtreecommitdiff
path: root/tests/kms_psr_sink_crc.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-02-18 16:19:59 +0000
committerThomas Wood <thomas.wood@intel.com>2015-02-25 16:48:25 +0000
commit8fb19782f82f25249aaed0ff0e5fa6601dbb0e9d (patch)
tree803568509acd7bfc35f9596cf3db1a59937c2ed4 /tests/kms_psr_sink_crc.c
parent55cc132b3219fbbf8c5705c674ef0f9a9b53d593 (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/kms_psr_sink_crc.c')
-rw-r--r--tests/kms_psr_sink_crc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index 98b60cf9..92566405 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -489,7 +489,7 @@ int main(int argc, char *argv[])
data_t data = {};
enum operations op;
- igt_subtest_init_parse_opts(argc, argv, "", long_options,
+ igt_subtest_init_parse_opts(&argc, argv, "", long_options,
help_str, opt_handler);
igt_skip_on_simulation();