diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-09-17 18:07:18 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-09-17 18:07:18 +0000 |
commit | fbeb7898c1c6710a6985c4c052741ce58daadda1 (patch) | |
tree | a2486565ccbc975dfc8a9ad13bdcf2433f5c063d /regress | |
parent | e82ccaa533cd3d6dc39d703cdf2ec34e0f7b3c51 (diff) |
add (failing) test for a corner case discovered by aja@: linebreaks inside fields
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/pkg-config/Makefile | 11 | ||||
-rw-r--r-- | regress/usr.bin/pkg-config/pcdir/linebreak.pc | 5 |
2 files changed, 15 insertions, 1 deletions
diff --git a/regress/usr.bin/pkg-config/Makefile b/regress/usr.bin/pkg-config/Makefile index a1ac4e56b9a..af02a15f604 100644 --- a/regress/usr.bin/pkg-config/Makefile +++ b/regress/usr.bin/pkg-config/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.23 2011/09/17 17:46:03 jasper Exp $ +# $OpenBSD: Makefile,v 1.24 2011/09/17 18:07:17 jasper Exp $ REGRESS_TARGETS=cmp-vers1-1 \ cmp-vers1-2 \ @@ -50,9 +50,11 @@ REGRESS_TARGETS=cmp-vers1-1 \ missing-req-3 \ whitespace-cflags \ whitespace-libs \ + whitespace-linebreak \ whitespace-name PKG_CONFIG= pkg-config +#PKG_CONFIG= /usr/obj/ports/pkgconfig-0.26/fake-i386/usr/local/bin/pkg-config WANT= ${.OBJDIR}/$@.want GOT= ${.OBJDIR}/$@.got @@ -423,6 +425,13 @@ whitespace-libs: --errors-to-stdout --print-errors whitespace > ${GOT} @diff -u ${WANT} ${GOT} +whitespace-linebreak: + # Test linebreak in Description field + @echo "-lc " > ${WANT} + @PKG_CONFIG_PATH=${.CURDIR}/pcdir/ ${PKG_CONFIG} --errors-to-stdout \ + --print-errors --libs linebreak > ${GOT} + @diff -u ${WANT} ${GOT} + whitespace-name: # Test whitespace in Name @echo "Requested 'whitespace > 0.2.0' but version of Whitespace test is 0.0.0" > ${WANT} diff --git a/regress/usr.bin/pkg-config/pcdir/linebreak.pc b/regress/usr.bin/pkg-config/pcdir/linebreak.pc new file mode 100644 index 00000000000..be77c34b2a7 --- /dev/null +++ b/regress/usr.bin/pkg-config/pcdir/linebreak.pc @@ -0,0 +1,5 @@ +Name: Linebreak test +Description: Descriptive +stuff +Version: 0.0.0 +Libs: -lc |