From 8196270655070eed2372b27d18f28b747d1a8ad7 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 16 Aug 2008 09:57:12 +0000 Subject: [PATCH] a new regression test, I has a diff for it. --- regress/usr.bin/m4/Makefile | 7 +++++-- regress/usr.bin/m4/args2.m4 | 4 ++++ regress/usr.bin/m4/args2.out | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/m4/args2.m4 create mode 100644 regress/usr.bin/m4/args2.out 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) -- 2.20.1