diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2019-06-05 10:44:47 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2019-06-06 09:48:47 -0700 |
commit | 3e500bf81d03c8b955c82c89d82fb20ee2b5d073 (patch) | |
tree | 240f30e2e0b0da0c2aade0e5812ed562feeba46e /lib/tests | |
parent | 4e0cc92bfba69c7a5b195a0e80613ba05001cf30 (diff) |
lib/igt_core: reserve long options for individual tests
Start the core options from 500 so the individual tests can have their
own options starting from 0. This makes it easier to set the long
options without conflicting.
500 is just a magic number, higher than any ascii char that could be
used in the individual test.
While at it, fix the coding style to use tab rather than space.
v2: also fix the test for conflicting args
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/igt_conflicting_args.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/igt_conflicting_args.c b/lib/tests/igt_conflicting_args.c index c357b6c5..f600abd4 100644 --- a/lib/tests/igt_conflicting_args.c +++ b/lib/tests/igt_conflicting_args.c @@ -91,7 +91,7 @@ int main(int argc, char **argv) internal_assert_wsignaled(do_fork(), SIGABRT); /* conflict on long option 'val' representations */ - long_options[0] = (struct option) { "iterations", required_argument, NULL, 0}; + long_options[0] = (struct option) { "iterations", required_argument, NULL, 500}; short_options = ""; internal_assert_wsignaled(do_fork(), SIGABRT); |