diff options
Diffstat (limited to 'tests/gentest/errprint.1.m4')
-rwxr-xr-x | tests/gentest/errprint.1.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/gentest/errprint.1.m4 b/tests/gentest/errprint.1.m4 new file mode 100755 index 00000000..107ef789 --- /dev/null +++ b/tests/gentest/errprint.1.m4 @@ -0,0 +1,25 @@ +#!/bin/sh + +# gentest/errprint.1.m4 is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 3426 + +. ${srcdir}/defs + +cat <<\EOF >in +errprint(`Illegal arguments to forloop +') +EOF + +cat <<\EOF >ok + +EOF + +cat <<\EOF >okerr +Illegal arguments to forloop +EOF + +$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 + |