diff options
Diffstat (limited to 'tests/gentest/undivert.2.test')
-rwxr-xr-x | tests/gentest/undivert.2.test | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/gentest/undivert.2.test b/tests/gentest/undivert.2.test new file mode 100755 index 00000000..6a84ecc4 --- /dev/null +++ b/tests/gentest/undivert.2.test @@ -0,0 +1,29 @@ +#!/bin/sh + +# gentest/undivert.2.test is part of the GNU m4 testsuite +# generated from example in ../doc/m4.texinfo line 2655 + +. ${srcdir}/defs + +cat <<\EOF >in +divert(1) +This text is diverted first. +divert(0)undivert(1)dnl +undivert(1) +divert(1) +This text is also diverted but not appended. +divert(0)undivert(1)dnl +EOF + +cat <<\EOF >ok + +This text is diverted first. + + +This text is also diverted but not appended. +EOF + +$M4 -d in >out + +$CMP -s out ok + |