mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
* lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
check. * tests/autotest.at (Empty test, Empty check): New test to check it.
This commit is contained in:
parent
4ba7445703
commit
1eff34d1c3
@ -1,4 +1,8 @@
|
||||
2006-04-10 Eric Blake <ebb9@byu.net>
|
||||
2006-04-11 Eric Blake <ebb9@byu.net>
|
||||
|
||||
* lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
|
||||
check.
|
||||
* tests/autotest.at (Empty test, Empty check): New test to check it.
|
||||
|
||||
* lib/autoconf/c.m4 (AC_C_CONST, AC_C_VOLATILE): Avoid warnings
|
||||
from gcc.
|
||||
|
@ -1469,7 +1469,7 @@ if test -n "$at_trace_this"; then
|
||||
grep '^ *+' "$at_stder1" >&2
|
||||
grep -v '^ *+' "$at_stder1" >"$at_stderr"
|
||||
else
|
||||
( $1 ) >"$at_stdout" 2>"$at_stderr"
|
||||
( :; $1 ) >"$at_stdout" 2>"$at_stderr"
|
||||
at_status=$?
|
||||
fi
|
||||
|
||||
|
@ -84,6 +84,11 @@ AT_CHECK_AT([Empty test suite],
|
||||
[[AT_INIT([empty test suite])
|
||||
]])
|
||||
|
||||
# Next level of emptiness.
|
||||
AT_CHECK_AT_TEST([Empty test], [])
|
||||
|
||||
# And finally, an empty check should not cause a syntax error.
|
||||
AT_CHECK_AT_TEST([Empty check], [AT_CHECK])
|
||||
|
||||
## ----------------------------------------------------- ##
|
||||
## Newlines and command substitutions in test commands. ##
|
||||
|
Loading…
Reference in New Issue
Block a user