mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
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>
This commit is contained in:
parent
57e6f69b99
commit
c283f62edb
@ -1,5 +1,12 @@
|
|||||||
2009-04-06 Eric Blake <ebb9@byu.net>
|
2009-04-06 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
Hard fail any test with syntax errors.
|
Hard fail any test with syntax errors.
|
||||||
* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
|
* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
|
||||||
Guarantee test failure on syntax error, rather than inheriting
|
Guarantee test failure on syntax error, rather than inheriting
|
||||||
|
7
NEWS
7
NEWS
@ -1,5 +1,12 @@
|
|||||||
GNU Autoconf NEWS - User visible changes.
|
GNU Autoconf NEWS - User visible changes.
|
||||||
|
|
||||||
|
* Major changes in Autoconf 2.64 (2009-??-??) [stable]
|
||||||
|
Released by Eric Blake, based on git versions 2.63b.*.
|
||||||
|
|
||||||
|
** Ensure AT_CHECK can support commands that include a # given with
|
||||||
|
proper m4 quoting. For shell comments, this is a new feature; for
|
||||||
|
non-shell comments, this fixes a regression introduced in 2.63b.
|
||||||
|
|
||||||
* Major changes in Autoconf 2.63b (2009-03-31) [beta]
|
* Major changes in Autoconf 2.63b (2009-03-31) [beta]
|
||||||
Released by Eric Blake, based on git versions 2.63.*.
|
Released by Eric Blake, based on git versions 2.63.*.
|
||||||
|
|
||||||
|
@ -1997,7 +1997,7 @@ at_fn_check_prepare_notrace],
|
|||||||
dnl We know at build time that tracing COMMANDS is always safe.
|
dnl We know at build time that tracing COMMANDS is always safe.
|
||||||
[[at_fn_check_prepare_trace],]dnl
|
[[at_fn_check_prepare_trace],]dnl
|
||||||
dnl COMMANDS may contain parameter expansions; expand them at runtime.
|
dnl COMMANDS may contain parameter expansions; expand them at runtime.
|
||||||
[[at_fn_check_prepare_dynamic "AS_ESCAPE([$1], [`\"])"])[]]dnl
|
[[at_fn_check_prepare_dynamic "AS_ESCAPE([[$1]], [`\"])"])[]]dnl
|
||||||
[_m4_popdef([at_reason])])
|
[_m4_popdef([at_reason])])
|
||||||
|
|
||||||
|
|
||||||
|
@ -322,6 +322,12 @@ bar
|
|||||||
[AT_NO_CMDSUBST])
|
[AT_NO_CMDSUBST])
|
||||||
|
|
||||||
|
|
||||||
|
AT_CHECK_AT_TEST([Shell comment in command],
|
||||||
|
[my_echo=echo
|
||||||
|
AT_CHECK([$my_echo one [#] two], [], [one
|
||||||
|
])])
|
||||||
|
|
||||||
|
|
||||||
## ------------------------- ##
|
## ------------------------- ##
|
||||||
## ${...} in test commands. ##
|
## ${...} in test commands. ##
|
||||||
## ------------------------- ##
|
## ------------------------- ##
|
||||||
|
Loading…
Reference in New Issue
Block a user