another issue for which I have a patch.
authorespie <espie@openbsd.org>
Sat, 16 Aug 2008 10:02:32 +0000 (10:02 +0000)
committerespie <espie@openbsd.org>
Sat, 16 Aug 2008 10:02:32 +0000 (10:02 +0000)
Issue reported by Vortechz Anderson <utg_vrtz@yahoo.se>

regress/usr.bin/m4/Makefile
regress/usr.bin/m4/includes.aux [new file with mode: 0644]
regress/usr.bin/m4/includes.m4 [new file with mode: 0644]
regress/usr.bin/m4/includes.out [new file with mode: 0644]

index aad7170..d884ba9 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.24 2008/08/16 09:57:12 espie Exp $
+#      $OpenBSD: Makefile,v 1.25 2008/08/16 10:02:32 espie Exp $
 
 FIBOMAX=25
 M4=m4
@@ -11,7 +11,7 @@ REGRESS_TARGETS= test-ff_after_dnl test-m4wrap test-m4wrap2 \
     test-patterns trip test-strangequotes test-redef test-quotes \
     test-weird test-args test-args2 test-esyscmd test-eval test-gnupatterns \
     test-gnupatterns2 test-comments test-synch1 test-synch1bis \
-    test-gnuformat
+    test-gnuformat test-includes
 
 test-ff_after_dnl: ff_after_dnl.m4
        ${M4} ff_after_dnl.m4 | diff - ${.CURDIR}/ff_after_dnl.out
@@ -74,6 +74,10 @@ test-args2:
 test-args:
        ${M4} ${.CURDIR}/args.m4 | diff - ${.CURDIR}/args.out
 
+test-includes:
+       ${M4} -I${.CURDIR} ${.CURDIR}/includes.m4 | \
+           diff - ${.CURDIR}/includes.out
+
 test-esyscmd:
        ${M4} ${.CURDIR}/esyscmd.m4 | diff -u - ${.CURDIR}/esyscmd.out
 
diff --git a/regress/usr.bin/m4/includes.aux b/regress/usr.bin/m4/includes.aux
new file mode 100644 (file)
index 0000000..e0a8573
--- /dev/null
@@ -0,0 +1,2 @@
+dnl $OpenBSD: includes.aux,v 1.1 2008/08/16 10:02:32 espie Exp $
+hello world dnl
diff --git a/regress/usr.bin/m4/includes.m4 b/regress/usr.bin/m4/includes.m4
new file mode 100644 (file)
index 0000000..b24b081
--- /dev/null
@@ -0,0 +1,4 @@
+dnl $OpenBSD: includes.m4,v 1.1 2008/08/16 10:02:32 espie Exp $
+dnl Check that include can occur within parameters
+define(`foo', include(includes.aux))dnl
+foo
diff --git a/regress/usr.bin/m4/includes.out b/regress/usr.bin/m4/includes.out
new file mode 100644 (file)
index 0000000..4a1f475
--- /dev/null
@@ -0,0 +1 @@
+hello world