]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autotest/general.m4 (_AT_CHECK): Avoid syntax error on empty
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 11 Apr 2006 16:03:28 +0000 (16:03 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 11 Apr 2006 16:03:28 +0000 (16:03 +0000)
check.
* tests/autotest.at (Empty test, Empty check): New test to check it.

ChangeLog
lib/autotest/general.m4
tests/autotest.at

index a41bbcbaad016354290e338508243882ae4f9d1f..4eea4eda26704649ec9af27aa89c226716a6a3f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 798f04e8f78e520fd42906b5f8a90642f62aede8..f5b88bf42e016e3b5ee01ed245482d4fb90c5a89 100644 (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
 
index 2f5c4fd7d57c5352d10d0417777b85f2952e1fe5..7f917879878829060cf1a845b370a0ff46580146 100644 (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.  ##