lib: Add a comment about why we only parse long options for subtests

For thet next one wondering about that.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau 2013-03-21 16:19:36 +00:00
parent 764b9e503e
commit c6c6f0f593

View File

@ -530,6 +530,8 @@ void drmtest_subtest_init(int argc, char **argv)
/* supress getopt errors about unknown options */
opterr = 0;
/* restrict the option parsing to long option names to avoid collisions
* with options the test declares */
while((c = getopt_long(argc, argv, "",
long_options, &option_index)) != -1) {
switch(c) {