summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/getopt_long
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libc/getopt_long')
-rw-r--r--src/regress/lib/libc/getopt_long/Makefile18
-rw-r--r--src/regress/lib/libc/getopt_long/getopt_long_test.c2
2 files changed, 10 insertions, 10 deletions
diff --git a/src/regress/lib/libc/getopt_long/Makefile b/src/regress/lib/libc/getopt_long/Makefile
index 5237d82dd2..b5dd343537 100644
--- a/src/regress/lib/libc/getopt_long/Makefile
+++ b/src/regress/lib/libc/getopt_long/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.1 2002/12/05 21:42:17 millert Exp $ 1# $OpenBSD: Makefile,v 1.2 2002/12/05 22:29:46 millert Exp $
2 2
3NOMAN= 3NOMAN=
4PROG=getopt_long_test 4PROG=getopt_long_test
@@ -8,20 +8,20 @@ run-regress-${PROG}: ${PROG}
8 @( test -n "$$POSIXLY_CORRECT" && unset POSIXLY_CORRECT; \ 8 @( test -n "$$POSIXLY_CORRECT" && unset POSIXLY_CORRECT; \
9 test -n "$$LONG_ONLY" && unset LONG_ONLY; \ 9 test -n "$$LONG_ONLY" && unset LONG_ONLY; \
10 ./${PROG} myfile --force -f infile -9 ; \ 10 ./${PROG} myfile --force -f infile -9 ; \
11 ./${PROG} onefile twofile --best --illiterate -i foo.in threefile ; \ 11 ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \
12 ./${PROG} --fast --drinking guiness -i foo.in somefile ; \ 12 ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \
13 export POSIXLY_CORRECT=1 ; \ 13 export POSIXLY_CORRECT=1 ; \
14 ./${PROG} myfile --force -f infile -9 ; \ 14 ./${PROG} myfile --force -f infile -9 ; \
15 ./${PROG} onefile twofile --best --illiterate -i foo.in threefile ; \ 15 ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \
16 ./${PROG} --fast --drinking guiness -i foo.in somefile ; \ 16 ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \
17 unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \ 17 unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \
18 ./${PROG} myfile -force -f infile -9 ; \ 18 ./${PROG} myfile -force -f infile -9 ; \
19 ./${PROG} onefile twofile --best -illiterate -i foo.in threefile ; \ 19 ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \
20 ./${PROG} --fast -drinking guiness -i foo.in somefile ; \ 20 ./${PROG} --fast -drinking=guiness -i foo.in somefile ; \
21 export POSIXLY_CORRECT=1 ; \ 21 export POSIXLY_CORRECT=1 ; \
22 ./${PROG} myfile -force -f infile -9 ; \ 22 ./${PROG} myfile -force -f infile -9 ; \
23 ./${PROG} onefile twofile --best -illiterate -i foo.in threefile ; \ 23 ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \
24 ./${PROG} --fast -drinking guiness -i foo.in somefile ) >test.out 2>&1 24 ./${PROG} --fast -drinking=guiness -i foo.in somefile ) >test.out 2>&1
25 cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok 25 cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok
26 26
27.include <bsd.regress.mk> 27.include <bsd.regress.mk>
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 7b013e534b..acd25fb749 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:h", 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) {