summaryrefslogtreecommitdiff
path: root/tests/gentest/include.1.m4
blob: e2912c840444415710d6487ba95b28eb6184c35e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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