mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-26 22:40:05 +01:00
test: Remove short option and fail on invalid options
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
9659511693
commit
ec717caad1
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue