From: espie Date: Sat, 16 Aug 2008 09:57:12 +0000 (+0000) Subject: a new regression test, I has a diff for it. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8196270655070eed2372b27d18f28b747d1a8ad7;p=openbsd a new regression test, I has a diff for it. --- 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)