testdisplay: ensure invalid long option exit status is non-zero
authorThomas Wood <thomas.wood@intel.com>
Fri, 31 Oct 2014 12:32:22 +0000 (12:32 +0000)
committerThomas Wood <thomas.wood@intel.com>
Thu, 6 Nov 2014 11:41:34 +0000 (11:41 +0000)
commitdb425d69f62690a95048fde6d5dc515686bfa9ac
tree01ceae8464c7b5894aeacbb21c12a13d69b580e3
parentb441e6ac2ac98ee2f365683f339c8802d238043f
testdisplay: ensure invalid long option exit status is non-zero

The optopt variable is not set if an invalid long option is used, so
check the current option character instead.

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
tests/testdisplay.c