summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2012-07-09 12:57:16 +0000
committerespie <espie@openbsd.org>2012-07-09 12:57:16 +0000
commit99fd53dfdd088241ec931494aa61b69dbdd0143f (patch)
treef4a0f6b36a4f500f3043f9c64fa044ac588af7e9
parentsomehow, the require is not enough for inheritance to work correctly ? (diff)
downloadwireguard-openbsd-99fd53dfdd088241ec931494aa61b69dbdd0143f.tar.xz
wireguard-openbsd-99fd53dfdd088241ec931494aa61b69dbdd0143f.zip
more arg parsing failure
-rw-r--r--regress/usr.bin/libtool/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/regress/usr.bin/libtool/Makefile b/regress/usr.bin/libtool/Makefile
index e5ae0dab36f..55676b8f8ae 100644
--- a/regress/usr.bin/libtool/Makefile
+++ b/regress/usr.bin/libtool/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.17 2012/07/09 10:13:45 espie Exp $
+# $OpenBSD: Makefile,v 1.18 2012/07/09 12:57:16 espie Exp $
REGRESS_TARGETS = test-compile-0 test-link-0 test-install-0 \
test-run-0 test-link-1 test-install-1 test-run-1 \
test-link-2 test-link-3 test-run-2 test-run-3 \
error-1 error-2 error-3 test-alternate-0 \
test-implicit-0 test-run-4 test-implicit-1 \
- test-help error-4
+ test-help error-4 error-6
FAILING_TARGETS += error-0
.include <bsd.own.mk>
@@ -87,11 +87,16 @@ error-3: dummy.c
if ${LIBTOOL} --mode=foo ${CC} -c -o dummy.lo dummy.c; then exit 1; fi
error-4: dummy.c
- if ${LIBTOOL} -mode=compile ${CC} -c -o dummy.lo dummy.c; then exit 1; fi
+ # libtool -mode=... is an invalid option
+ @if ${LIBTOOL} -mode=compile ${CC} -c -o dummy.lo dummy.c; then exit 1; fi
error-5: libbad.la
fgrep -q "library_names=''" libbad.la || exit 1
+error-6:
+ # implicit mode detection failure: libtool foo
+ @if ${LIBTOOL} foo; then exit 1; fi
+
prefer-static: dummy2.lo
if fgrep -q .libs/dummy2.o dummy2.lo; then exit 1; fi