projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fae99b
)
testdisplay: set a non-zero exit code if getopt detected an error
author
Thomas Wood
<thomas.wood@intel.com>
Fri, 25 Jul 2014 14:35:36 +0000
(15:35 +0100)
committer
Thomas Wood
<thomas.wood@intel.com>
Wed, 30 Jul 2014 10:13:13 +0000
(11:13 +0100)
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
tests/testdisplay.c
patch
|
blob
|
history
diff --git
a/tests/testdisplay.c
b/tests/testdisplay.c
index
3bf6133
..
a187c16
100644
(file)
--- a/
tests/testdisplay.c
+++ b/
tests/testdisplay.c
@@
-672,7
+672,7
@@
static void __attribute__((noreturn)) usage(char *name)
igt_info("\t\t<vdisp>,<vsync-start>,<vsync-end>,<vtotal>\n");
igt_info("\t\ttest force mode\n");
igt_info("\tDefault is to test all modes.\n");
- exit(0);
+ exit(
(optopt) ? -1 :
0);
}
#define dump_resource(res) if (res) dump_##res()