summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libc/getopt_long/Makefile18
-rw-r--r--regress/lib/libc/getopt_long/getopt_long_test.c2
2 files changed, 10 insertions, 10 deletions
diff --git a/regress/lib/libc/getopt_long/Makefile b/regress/lib/libc/getopt_long/Makefile
index 5237d82dd22..b5dd3435379 100644
--- a/regress/lib/libc/getopt_long/Makefile
+++ b/regress/lib/libc/getopt_long/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.1 2002/12/05 21:42:17 millert Exp $
+# $OpenBSD: Makefile,v 1.2 2002/12/05 22:29:46 millert Exp $
NOMAN=
PROG=getopt_long_test
@@ -8,20 +8,20 @@ run-regress-${PROG}: ${PROG}
@( test -n "$$POSIXLY_CORRECT" && unset POSIXLY_CORRECT; \
test -n "$$LONG_ONLY" && unset LONG_ONLY; \
./${PROG} myfile --force -f infile -9 ; \
- ./${PROG} onefile twofile --best --illiterate -i foo.in threefile ; \
- ./${PROG} --fast --drinking guiness -i foo.in somefile ; \
+ ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \
+ ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \
export POSIXLY_CORRECT=1 ; \
./${PROG} myfile --force -f infile -9 ; \
- ./${PROG} onefile twofile --best --illiterate -i foo.in threefile ; \
- ./${PROG} --fast --drinking guiness -i foo.in somefile ; \
+ ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \
+ ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \
unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \
./${PROG} myfile -force -f infile -9 ; \
- ./${PROG} onefile twofile --best -illiterate -i foo.in threefile ; \
- ./${PROG} --fast -drinking guiness -i foo.in somefile ; \
+ ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \
+ ./${PROG} --fast -drinking=guiness -i foo.in somefile ; \
export POSIXLY_CORRECT=1 ; \
./${PROG} myfile -force -f infile -9 ; \
- ./${PROG} onefile twofile --best -illiterate -i foo.in threefile ; \
- ./${PROG} --fast -drinking guiness -i foo.in somefile ) >test.out 2>&1
+ ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \
+ ./${PROG} --fast -drinking=guiness -i foo.in somefile ) >test.out 2>&1
cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok
.include <bsd.regress.mk>
diff --git a/regress/lib/libc/getopt_long/getopt_long_test.c b/regress/lib/libc/getopt_long/getopt_long_test.c
index 7b013e534b9..acd25fb7495 100644
--- a/regress/lib/libc/getopt_long/getopt_long_test.c
+++ b/regress/lib/libc/getopt_long/getopt_long_test.c
@@ -67,7 +67,7 @@ main(int argc, char **argv)
goggles = 0;
for (;;) {
idx = -1;
- ch = gl(argc, argv, "19bf:i:h", longopts, &idx);
+ ch = gl(argc, argv, "19bf:i:hW;", longopts, &idx);
if (ch == -1)
break;
switch (ch) {