summaryrefslogtreecommitdiff
path: root/tests/gentest/include.1.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gentest/include.1.m4')
-rwxr-xr-xtests/gentest/include.1.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/gentest/include.1.m4 b/tests/gentest/include.1.m4
new file mode 100755
index 00000000..e2912c84
--- /dev/null
+++ b/tests/gentest/include.1.m4
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# gentest/include.1.m4 is part of the GNU m4 testsuite
+# generated from example in ../doc/m4.texinfo line 2454
+
+. ${srcdir}/defs
+
+cat <<\EOF >in
+include(`no-such-file')
+sinclude(`no-such-file')
+EOF
+
+cat <<\EOF >ok
+
+
+EOF
+
+cat <<\EOF >okerr
+in:1: m4: Cannot open no-such-file: No such file or directory
+EOF
+
+M4PATH=$srcdir $M4 -d in >out 2>err
+sed -e "s, ../../src/m4:, m4:," err >sederr && mv sederr err
+
+$CMP -s out ok && $CMP -s err okerr
+