Handle special characters in test case titles correctly.
commit45cd8714aa542ea850a0a9542bec87b1622ec31b
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Oct 2006 23:05:33 +0000 (27 23:05 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Oct 2006 23:05:33 +0000 (27 23:05 +0000)
treec6b493d32fe9647dae33b9923f14720dabd26602
parent84c6b667967575d643b14b05dd2792f92dfd4549
Handle special characters in test case titles correctly.
* lib/autotest/general.m4 (AT_INIT): M4-quote and AS_ESCAPE AT_help_all
properly.
(AT_SETUP): M4-quote and AS_ESCAPE the title properly everywhere.
* tests/autotest.at (AT_CHECK_AT_TITLE): Add EXPANDED-TITLE-TO-TEST
argument.  Extend to check titles printed by ./micro-suite and
./micro-suite -l and the title in micro-suite.log.
(Backquote in a test title,
Single-quote in a test title,
Double-quote in a test title): Don't expect failure anymore.
(Backslash in a test title): Put a non-whitespace character after the
backslash so that Bourne shells might actually see it as an escape
sequence.
(Brackets in a test title,
Pound in a test title,
Comma in a test title,
Quoted Macro in a test title,
Macro in a test title,
Macro with single-quote in a test title): New tests.
(Macro with backquote in a test title,
Macro with double-quote in a test title,
Macro with backslash in a test title): New tests expected to fail.
* tests/torture.at (#define header templates): M4-quote this title in
AT_SETUP call so that no M4 code is commented inadvertently somewhere.
The visible effect was a stray [] in the testsuite output.
ChangeLog
lib/autotest/general.m4
tests/autotest.at
tests/torture.at