summaryrefslogtreecommitdiff
path: root/tests/tools.at
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-07-13 10:35:32 -0600
committerEric Blake <ebb9@byu.net>2009-07-16 06:24:21 -0600
commit497a186732392d9ae297125071fc11794d364fcb (patch)
tree3ae7868409983dff938a45823cd2385d21118fed /tests/tools.at
parentf2563825193e02c183cf831efff4db7f0d6d574a (diff)
downloadautoconf-497a186732392d9ae297125071fc11794d364fcb.tar.gz
Don't hide leading space in autom4te --trace output.
* bin/autom4te.in (handle_traces): Don't flatten leading and trailing space, since tracing spacing bugs can be useful. * tests/tools.at (autom4te --trace and whitespace): New test. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'tests/tools.at')
-rw-r--r--tests/tools.at15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tools.at b/tests/tools.at
index c4016cc7..542e668a 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -226,6 +226,21 @@ AT_CHECK_AUTOM4TE([-t 'TR A CE' -t 'TR(A)CE' file.m4])
AT_CLEANUP
+AT_SETUP([autom4te --trace and whitespace])
+
+AT_DATA([file.m4],
+[[m4@&t@_echo([ a
+b c ], [\
+d\
+])
+]])
+AT_CHECK_AUTOM4TE([--language=m4sugar -t 'm4@&t@_echo' file.m4], [0],
+[[file.m4:1:m4@&t@_echo: a b c :d
+]])
+
+AT_CLEANUP
+
+
## ------------------ ##
## autoconf --trace. ##
## ------------------ ##