summaryrefslogtreecommitdiff
path: root/tests/include.1.test
blob: 535a12927e6cc6cbb2c4232fd6e96e4005a89eb3 (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

# include.1.test is part of the GNU m4 testsuite
# generated from example in ../doc/m4.texinfo line 2455

. ${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