diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-10-10 11:16:29 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-10-10 11:16:29 +0000 |
commit | 74394cf411cbb42d6a83d507ae590984091cb3d1 (patch) | |
tree | 6726361c58296be23e907ba2ae7b0869fcab0951 /regress | |
parent | abbe089247e3585b4842ad5592f8748c1756720a (diff) |
Check whether __file__ is correctly quoted (probleme noticed in gm4 dumpdef)
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/m4/Makefile | 8 | ||||
-rw-r--r-- | regress/usr.bin/m4/weird,name.m4 | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/regress/usr.bin/m4/Makefile b/regress/usr.bin/m4/Makefile index 687b66419c2..4c78a10fb95 100644 --- a/regress/usr.bin/m4/Makefile +++ b/regress/usr.bin/m4/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.11 2001/10/06 10:59:11 espie Exp $ +# $OpenBSD: Makefile,v 1.12 2001/10/10 11:16:28 espie Exp $ # $NetBSD: Makefile,v 1.2 1999/02/13 02:54:33 lukem Exp $ NOMAN= @@ -11,7 +11,8 @@ M4=m4 CLEANFILES+= ff_after_dnl.m4 strangequotes.m4 fibo.out ALL_TESTS= test-ff_after_dnl test-m4wrap test-m4wrap2 test-fibo \ - test-patterns trip test-strangequotes test-redef test-quotes + test-patterns trip test-strangequotes test-redef test-quotes \ + test-weird regress: ${ALL_TESTS} @@ -51,6 +52,9 @@ test-strangequotes: strangequotes.m4 test-redef: ${M4} ${.CURDIR}/redef.m4 | diff - ${.CURDIR}/redef.out +test-weird: + test `${M4} ${.CURDIR}/weird,name.m4 | wc -c` == 0 + .PHONY: ${ALL_TESTS} .include <bsd.prog.mk> diff --git a/regress/usr.bin/m4/weird,name.m4 b/regress/usr.bin/m4/weird,name.m4 new file mode 100644 index 00000000000..d87adaa87a4 --- /dev/null +++ b/regress/usr.bin/m4/weird,name.m4 @@ -0,0 +1,4 @@ +dnl $OpenBSD: weird,name.m4,v 1.1 2001/10/10 11:16:28 espie Exp $ +dnl trip up m4 if it forgets to quote filenames +define(`A', `$2')dnl +A(__file__)dnl |