summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-04-06 12:13:02 -0600
committerEric Blake <ebb9@byu.net>2009-04-06 20:52:44 -0600
commitc283f62edb0f6a38f035fe824baa8547a49d2a44 (patch)
tree3ed6960969c213977e29fcca4322a6bae0866f2f /tests
parent57e6f69b99f75f72049fc92b0143837747dc1c83 (diff)
downloadautoconf-c283f62edb0f6a38f035fe824baa8547a49d2a44.tar.gz
Handle shell comments in AT_CHECK.
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in test correctly. Latent bug in handling shell comment was first fixed 2008-11-20, but regressed two patches later. * tests/autotest.at (Shell comment in command): New test. * NEWS: Document the fix. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/autotest.at6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/autotest.at b/tests/autotest.at
index a49ea1b7..c5a8b586 100644
--- a/tests/autotest.at
+++ b/tests/autotest.at
@@ -322,6 +322,12 @@ bar
[AT_NO_CMDSUBST])
+AT_CHECK_AT_TEST([Shell comment in command],
+ [my_echo=echo
+ AT_CHECK([$my_echo one [#] two], [], [one
+])])
+
+
## ------------------------- ##
## ${...} in test commands. ##
## ------------------------- ##