summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2008-08-16 09:57:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2008-08-16 09:57:13 +0000
commitbb1d294db8a3da41f74045cbf621bd2047173442 (patch)
treeced7e615bd2a38b60f1ffd05af619a56066e677d /regress/usr.bin/m4
parent3174ae01e622aca42c981137b910b1f5e4abf597 (diff)
a new regression test, I has a diff for it.
Diffstat (limited to 'regress/usr.bin/m4')
-rw-r--r--regress/usr.bin/m4/Makefile7
-rw-r--r--regress/usr.bin/m4/args2.m44
-rw-r--r--regress/usr.bin/m4/args2.out1
3 files changed, 10 insertions, 2 deletions
diff --git a/regress/usr.bin/m4/Makefile b/regress/usr.bin/m4/Makefile
index b0d32a25ac8..aad71707658 100644
--- a/regress/usr.bin/m4/Makefile
+++ b/regress/usr.bin/m4/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.23 2006/03/20 20:27:45 espie Exp $
+# $OpenBSD: Makefile,v 1.24 2008/08/16 09:57:12 espie Exp $
FIBOMAX=25
M4=m4
@@ -9,7 +9,7 @@ CLEANFILES+= ff_after_dnl.m4 strangequotes.m4 fibo.out
REGRESS_TARGETS= test-ff_after_dnl test-m4wrap test-m4wrap2 \
test-m4wrap3 test-gm4wrap3 test-fibo \
test-patterns trip test-strangequotes test-redef test-quotes \
- test-weird test-args test-esyscmd test-eval test-gnupatterns \
+ test-weird test-args test-args2 test-esyscmd test-eval test-gnupatterns \
test-gnupatterns2 test-comments test-synch1 test-synch1bis \
test-gnuformat
@@ -68,6 +68,9 @@ test-redef:
test-weird:
test `${M4} ${.CURDIR}/weird,name.m4 | wc -c` == 0
+test-args2:
+ ${M4} ${.CURDIR}/args2.m4 | diff - ${.CURDIR}/args2.out
+
test-args:
${M4} ${.CURDIR}/args.m4 | diff - ${.CURDIR}/args.out
diff --git a/regress/usr.bin/m4/args2.m4 b/regress/usr.bin/m4/args2.m4
new file mode 100644
index 00000000000..daac5f98b19
--- /dev/null
+++ b/regress/usr.bin/m4/args2.m4
@@ -0,0 +1,4 @@
+dnl $OpenBSD: args2.m4,v 1.1 2008/08/16 09:57:12 espie Exp $
+dnl Preserving spaces within nested parentheses
+define(`foo',`$1')dnl
+foo(( check for embedded spaces))
diff --git a/regress/usr.bin/m4/args2.out b/regress/usr.bin/m4/args2.out
new file mode 100644
index 00000000000..74bdbd6e595
--- /dev/null
+++ b/regress/usr.bin/m4/args2.out
@@ -0,0 +1 @@
+( check for embedded spaces)