* tests/m4sh.at (LINENO): Protect from autom4te's substitution by

hand.
* tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
This commit is contained in:
Akim Demaille 2001-11-13 15:18:26 +00:00
parent 0ff9d603a6
commit 2f4a677544
3 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2001-11-13 Akim Demaille <akim@epita.fr>
* tests/m4sh.at (LINENO): Protect from autom4te's substitution by
hand.
* tests/tools.at: Don't protect dnl, AT_DATA_M4SH does.
2001-11-13 Akim Demaille <akim@epita.fr>
* lib/autotest/general.m4 (AT_INIT): After having run the test

View File

@ -42,15 +42,15 @@ AT_SETUP([LINENO])
# UNSET-LINENO is a shell condition to make sure the scripts have the
# same number of lines in the output, so that their outputs be identical.
m4_define([AT_DATA_LINENO],
[AT_DATA_M4SH([$1],
[[AS_INIT
[AT_DATA([$1],
[[AS@&t@_INIT
if $2; then
AS_UNSET([LINENO])
AS@&t@_UNSET([LINENO])
fi
AS_SHELL_SANITIZE
AS@&t@_SHELL_SANITIZE
echo "Line: $3"
grep 'Line: .*$4' $[0] >/dev/null ||
AS_ERROR([cannot find original script])
AS@&t@_ERROR([cannot find original script])
exit 0
]])
])# AT_DATA_LINENO

View File

@ -255,7 +255,7 @@ AT_DATA_M4SH([experr],
configure.ac:3: error: possibly undefined macro: _m4_bar
configure.ac:4: error: possibly undefined macro: AS_FOO
configure.ac:5: error: possibly undefined macro: _AS_BAR
configure.ac:6: error: possibly undefined macro: d@&t@nl
configure.ac:6: error: possibly undefined macro: dnl
]])
AT_CHECK_AUTOCONF([], 1, [], experr)