mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 21:02:59 +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:
@@ -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_exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user