From: Pavel Roskin Date: Fri, 29 Jun 2001 05:27:48 +0000 (+0000) Subject: * atgeneral.m4 (AT_CHECK): Add a newline to the end of X-Git-Tag: AUTOCONF-2.50c~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb431503837fc41776fd44286e2c4dc4d583ed7;p=thirdparty%2Fautoconf.git * atgeneral.m4 (AT_CHECK): Add a newline to the end of at-stdout and at-stderr instead of removing the newline from the echo output, which is not guaranteed to work. --- diff --git a/ChangeLog b/ChangeLog index b04adebe5..67b619409 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-06-29 Pavel Roskin + + * atgeneral.m4 (AT_CHECK): Add a newline to the end of + at-stdout and at-stderr instead of removing the newline + from the echo output, which is not guaranteed to work. + 2001-06-28 Jens Petersen * aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index b7675f1a3..77b32e95c 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -538,14 +538,14 @@ m4_case([$4], ignore, [(echo stderr:; cat at-stderr) >&5], experr, [$at_diff experr at-stderr >&5 || at_failed=:], [], [$at_diff $at_devnull at-stderr >&5 || at_failed=:], - [echo $at_n "AS_ESCAPE([$4])$at_c" | $at_diff - at-stderr >&5 || at_failed=:]) + [echo >>at-stderr; echo "AS_ESCAPE([$4])" | $at_diff - at-stderr >&5 || at_failed=:]) dnl Check stdout. m4_case([$3], stdout, [(echo stdout:; tee stdout &5], ignore, [(echo stdout:; cat at-stdout) >&5], expout, [$at_diff expout at-stdout >&5 || at_failed=:], [], [$at_diff $at_devnull at-stdout >&5 || at_failed=:], - [echo $at_n "AS_ESCAPE([$3])$at_c" | $at_diff - at-stdout >&5 || at_failed=:]) + [echo >>at-stdout; echo "AS_ESCAPE([$3])" | $at_diff - at-stdout >&5 || at_failed=:]) dnl Check exit val. Don't `skip' if we are precisely checking $? = 77. case $at_status in m4_case([$2], diff --git a/tests/atgeneral.m4 b/tests/atgeneral.m4 index b7675f1a3..77b32e95c 100644 --- a/tests/atgeneral.m4 +++ b/tests/atgeneral.m4 @@ -538,14 +538,14 @@ m4_case([$4], ignore, [(echo stderr:; cat at-stderr) >&5], experr, [$at_diff experr at-stderr >&5 || at_failed=:], [], [$at_diff $at_devnull at-stderr >&5 || at_failed=:], - [echo $at_n "AS_ESCAPE([$4])$at_c" | $at_diff - at-stderr >&5 || at_failed=:]) + [echo >>at-stderr; echo "AS_ESCAPE([$4])" | $at_diff - at-stderr >&5 || at_failed=:]) dnl Check stdout. m4_case([$3], stdout, [(echo stdout:; tee stdout &5], ignore, [(echo stdout:; cat at-stdout) >&5], expout, [$at_diff expout at-stdout >&5 || at_failed=:], [], [$at_diff $at_devnull at-stdout >&5 || at_failed=:], - [echo $at_n "AS_ESCAPE([$3])$at_c" | $at_diff - at-stdout >&5 || at_failed=:]) + [echo >>at-stdout; echo "AS_ESCAPE([$3])" | $at_diff - at-stdout >&5 || at_failed=:]) dnl Check exit val. Don't `skip' if we are precisely checking $? = 77. case $at_status in m4_case([$2],