check.
* tests/autotest.at (Empty test, Empty check): New test to check it.
-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.
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
[[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. ##