2007-10-04 Eric Blake <ebb9@byu.net>
+ Fix recent testsuite failures.
+ * lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
+ that must not be re-expanded after AS_ESCAPE.
+ * lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
+ checking if it is an identifier.
+
Whitespace cleanup.
* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
leading whitespace, as it caused space-tab in testsuite.
# numerical order.
at_format='m4_bpatsubst(m4_defn([AT_ordinal]), [.], [?])'
# Description of all the test groups.
-at_help_all="AS_ESCAPE(m4_defn([AT_help_all]))"])])dnl
+at_help_all="AS_ESCAPE(m4_dquote(m4_defn([AT_help_all])))"])])dnl
m4_divert_push([PARSE_ARGS])dnl
at_prev=
m4_divert_push([TESTS])dnl
AT_ordinal ) @%:@ AT_ordinal. m4_defn([AT_line]): m4_defn([AT_description])
at_setup_line='m4_defn([AT_line])'
- at_desc="AS_ESCAPE(m4_defn([AT_description]))"
+ at_desc="AS_ESCAPE(m4_dquote(m4_defn([AT_description])))"
$at_quiet AS_ECHO_N(["m4_format([%3d: ], AT_ordinal)$at_desc"]dnl
["m4_format(%m4_eval(47 - m4_qlen(m4_defn([AT_description])))[s])"])
m4_divert_push([TEST_SCRIPT])dnl
[_$0(m4_bpatsubst([[$1]], [@&t@]), [$2], [$3])])])
m4_define([_AS_IDENTIFIER_IF],
[m4_if([$1], [], [$3],
- m4_translit([$1], ]m4_dquote(m4_defn([m4_cr_symbols2]))[), [],
+ m4_translit([[$1]], ]m4_dquote(m4_defn([m4_cr_symbols2]))[), [],
[m4_if(m4_len(m4_translit(m4_format([[%.1s]], [$1]), ]]dnl
m4_dquote(m4_dquote(m4_defn([m4_cr_symbols1])))[[)), [0], [$2], [$3])],
[$3])])