summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-10-06 10:59:12 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-10-06 10:59:12 +0000
commitaad314179fec50d466fe7be79d639296622fa41a (patch)
tree7cdf502d867a2159bd6f05bf0ee32ece18eedb18
parent64313d44483151a96bc3c2f61d09d720279da5c6 (diff)
regression test for last buglet. Thanks Dale.
-rw-r--r--regress/usr.bin/m4/Makefile9
-rw-r--r--regress/usr.bin/m4/m4wrap2.m44
2 files changed, 10 insertions, 3 deletions
diff --git a/regress/usr.bin/m4/Makefile b/regress/usr.bin/m4/Makefile
index 54fa9dcee0a..687b66419c2 100644
--- a/regress/usr.bin/m4/Makefile
+++ b/regress/usr.bin/m4/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2001/09/29 15:49:18 espie Exp $
+# $OpenBSD: Makefile,v 1.11 2001/10/06 10:59:11 espie Exp $
# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:33 lukem Exp $
NOMAN=
@@ -10,8 +10,8 @@ M4=m4
.SUFFIXES: .m4 .m4.uu
CLEANFILES+= ff_after_dnl.m4 strangequotes.m4 fibo.out
-ALL_TESTS= test-ff_after_dnl test-m4wrap test-fibo test-patterns trip \
- test-strangequotes test-redef test-quotes
+ALL_TESTS= test-ff_after_dnl test-m4wrap test-m4wrap2 test-fibo \
+ test-patterns trip test-strangequotes test-redef test-quotes
regress: ${ALL_TESTS}
@@ -24,6 +24,9 @@ test-ff_after_dnl: ff_after_dnl.m4
test-m4wrap:
${M4} ${.CURDIR}/m4wrap.m4 | diff - ${.CURDIR}/m4wrap.out
+test-m4wrap2:
+ test `${M4} ${.CURDIR}/m4wrap2.m4 | wc -c` == 0
+
test-patterns:
${M4} ${.CURDIR}/patterns.m4 | diff - ${.CURDIR}/patterns.out
diff --git a/regress/usr.bin/m4/m4wrap2.m4 b/regress/usr.bin/m4/m4wrap2.m4
new file mode 100644
index 00000000000..0a4cf3ec0bd
--- /dev/null
+++ b/regress/usr.bin/m4/m4wrap2.m4
@@ -0,0 +1,4 @@
+dnl $OpenBSD: m4wrap2.m4,v 1.1 2001/10/06 10:59:11 espie Exp $
+dnl another wrap test, to check that nothing adds bogus EOF
+m4wrap(`m4wrap_string')dnl
+define(m4wrap_string,`')dnl