summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-03-21 16:19:36 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-22 11:08:17 +0000
commitc6c6f0f5937da94c0efb70bbd56d72bba1dc0f96 (patch)
tree3673b587cbb94e3d49f4b95fe531a740156d117d /lib
parent764b9e503e83d7ad9d7f7dae61ab24763b7cac9c (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c2
1 files changed, 2 insertions, 0 deletions
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) {