* 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:
Ralf Wildenhues 2006-04-11 16:03:28 +00:00
parent 4ba7445703
commit 1eff34d1c3
3 changed files with 11 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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. ##