autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Eliminating dependency on at_n and at_c in tests


From: Pavel Roskin
Subject: Eliminating dependency on at_n and at_c in tests
Date: Mon, 25 Jun 2001 20:31:46 -0400 (EDT)

Hello!

Now all shells support either "-n" or "\c" is echo. Autoconf-generated
scripts have a fallback when the output is printed on the next line with
an indent.

The testsuite doesn't have a working fallback. Here's the fix.

ChangeLog:
        * 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.

-- 
Regards,
Pavel Roskin

__________________________________________
--- tests/atgeneral.m4
+++ tests/atgeneral.m4
@@ -538,14 +538,14 @@
         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 <at-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],
__________________________________________




reply via email to

[Prev in Thread] Current Thread [Next in Thread]