projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9659511
)
test: Remove short option and fail on invalid options
author
Jonas Ådahl
<jadahl@gmail.com>
Wed, 15 Jan 2014 22:24:21 +0000
(23:24 +0100)
committer
Jonas Ådahl
<jadahl@gmail.com>
Wed, 15 Jan 2014 22:24:21 +0000
(23:24 +0100)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index e5898e17352938b061cfacaba0676156652a6a08..1f063c0270ca3a36e574510f4b5b699d01ea5cf1 100644
(file)
--- a/
test/litest.c
+++ b/
test/litest.c
@@
-267,13
+267,17
@@
litest_run(int argc, char **argv) {
int c;
int option_index = 0;
- c = getopt_long(argc, argv, "
l
", opts, &option_index);
+ c = getopt_long(argc, argv, "", opts, &option_index);
if (c == -1)
break;
switch(c) {
case 'l':
litest_list_tests(&all_tests);
return 0;
+ default:
+ fprintf(stderr, "usage: %s [--list]\n", argv[0]);
+ return 1;
+
}
}