[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix for the Cat in the Hat (test 24)
From: |
Pavel Roskin |
Subject: |
Fix for the Cat in the Hat (test 24) |
Date: |
Fri, 2 Feb 2001 17:29:37 -0500 (EST) |
Hello!
I believe, it's Ok to require that the commands in multiline
AC_TRY_COMMAND are separated by semicolons. If we agree on that, BUGS and
autoconf.texi will require some modifications.
The scope of this patch is only the testsuite. It fixed the test 24.
ChangeLog:
* base.at (AC_TRY_*): Fix typos preventing the test from
succeeding. Add a colon between "then" and "else". Separate
commands inside AC_TRY_COMMAND with semicolons.
From Nicolas Joly.
_____________________________
--- tests/base.at
+++ tests/base.at
@@ -226,17 +226,17 @@
AT_DATA([configure.ac],
[[AC_INIT
-if AC_TRY_COMMAND([(echo "The Cat in the Hat"
+if AC_TRY_COMMAND([(echo "The Cat in the Hat";
echo "The Hat in the Cat" >&2)
- | grep ^The\ Cat\ in\ The\ Hat\$ >/dev/null]); then
- # Cool!
+ | grep ^The\ Cat\ in\ the\ Hat\$ >/dev/null]); then
+ : # Cool!
else
AC_MSG_ERROR([Didn't see the Cat in the Hat!])
fi
-if AC_TRY_COMMAND([(echo "The Cat in the Hat"
+if AC_TRY_COMMAND([(echo "The Cat in the Hat";
echo "The Hat in the Cat" >&2)
- | grep ^The\ Hat\ in\ The\ Cat\$ >/dev/null]); then
+ | grep ^The\ Hat\ in\ the\ Cat\$ >/dev/null]); then
AC_MSG_ERROR([Saw the Hat in the Cat!])
fi
]])
_____________________________
Regards,
Pavel Roskin
- Fix for the Cat in the Hat (test 24),
Pavel Roskin <=