diff options
Diffstat (limited to 'src/regress/lib/libc/getopt_long/getopt_long_test.c')
-rw-r--r-- | src/regress/lib/libc/getopt_long/getopt_long_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regress/lib/libc/getopt_long/getopt_long_test.c b/src/regress/lib/libc/getopt_long/getopt_long_test.c index b15613d982..27a2dc4a5f 100644 --- a/src/regress/lib/libc/getopt_long/getopt_long_test.c +++ b/src/regress/lib/libc/getopt_long/getopt_long_test.c | |||
@@ -67,7 +67,7 @@ main(int argc, char **argv) | |||
67 | goggles = 0; | 67 | goggles = 0; |
68 | for (;;) { | 68 | for (;;) { |
69 | idx = -1; | 69 | idx = -1; |
70 | ch = gl(argc, argv, "19bf:i:hW;", longopts, &idx); | 70 | ch = gl(argc, argv, "19bf:i:hW;-", longopts, &idx); |
71 | if (ch == -1) | 71 | if (ch == -1) |
72 | break; | 72 | break; |
73 | switch (ch) { | 73 | switch (ch) { |
@@ -76,6 +76,7 @@ main(int argc, char **argv) | |||
76 | case '9': | 76 | case '9': |
77 | case 'h': | 77 | case 'h': |
78 | case 'b': | 78 | case 'b': |
79 | case '-': | ||
79 | if (idx != -1) { | 80 | if (idx != -1) { |
80 | if (goggles == 42) | 81 | if (goggles == 42) |
81 | printf("option %s, arg %s\n", | 82 | printf("option %s, arg %s\n", |