summaryrefslogtreecommitdiff
path: root/tests/undivert.3.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/undivert.3.test')
-rwxr-xr-xtests/undivert.3.test25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/undivert.3.test b/tests/undivert.3.test
new file mode 100755
index 00000000..146374d9
--- /dev/null
+++ b/tests/undivert.3.test
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# undivert.3.test is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 2682
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+define(`bar', `BAR')
+undivert(`foo')
+include(`foo')
+EOF
+
+cat <<\EOF >ok
+
+bar
+
+BAR
+
+EOF
+
+M4PATH=$srcdir $M4 -d in >out
+
+$CMP -s out ok
+