From c6c6f0f5937da94c0efb70bbd56d72bba1dc0f96 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 21 Mar 2013 16:19:36 +0000 Subject: [PATCH] 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 --- lib/drmtest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index 641028c9..a60a3a60 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -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) {