[SCM] GNU Autoconf source repository branch, master, updated. v2.67-18-g8fb83cd

"Eric Blake" <[email protected]> Sat, 14 Aug 2010 18:07:19 +0000
Newsgroups gmane.comp.sysutils.autoconf.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=8fb83cd25b587eb71b5dd34da0431b07ae8ef999

The branch, master has been updated
       via  8fb83cd25b587eb71b5dd34da0431b07ae8ef999 (commit)
      from  e8ad0ea4c1bc148ff8a4b0108887fb24f4f7c56e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8fb83cd25b587eb71b5dd34da0431b07ae8ef999
Author: Peter Rosin <[email protected]>
Date:   Tue Aug 10 23:08:03 2010 +0200

    autotest: keep testsuite files on unexpected pass
    
    * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
    Don't cleanup the group directory when a test unexpectedly passes.
    * tests/autotest.at (Cleanup): Check that an unexpected pass leaves
    the test group directory intact.
    
    Signed-off-by: Peter Rosin <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog               |    8 ++++++++
 lib/autotest/general.m4 |    5 +++--
 tests/autotest.at       |   17 ++++++++++++-----
 3 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b892e09..cfa3c0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-08-10  Peter Rosin  <[email protected]>
+
+	Keep testsuite files on unexpected pass.
+	* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
+	Don't cleanup the group directory when a test unexpectedly passes.
+	* tests/autotest.at (Cleanup): Check that an unexpected pass leaves
+	the test group directory intact.
+
 2010-08-10  Ralf Wildenhues  <[email protected]>
 
 	Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index 170200c..a248342 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -1253,8 +1253,9 @@ _ATEOF
       AS_ECHO(["$at_log_msg"]) >> "$at_group_log"
       AS_ECHO(["$at_log_msg"]) >&AS_MESSAGE_LOG_FD
 
-      # Cleanup the group directory, unless the user wants the files.
-      if $at_debug_p; then
+      # Cleanup the group directory, unless the user wants the files
+      # or the success was unexpected.
+      if $at_debug_p || test $at_res = xpass; then
 	at_fn_create_debugging_script
       else
 	if test -d "$at_group_dir"; then
diff --git a/tests/autotest.at b/tests/autotest.at
index 7c0a7df..b617db6 100644
--- a/tests/autotest.at
+++ b/tests/autotest.at
@@ -478,6 +478,7 @@ AT_CHECK_AT([Binary output],
 
 AT_CHECK_AT_TEST([Cleanup],
   [AT_CHECK([test ! -f cleanup.success && test ! -f cleanup.failure])
+   AT_XFAIL_IF([$xfail])
    AT_CHECK_UNQUOTED([exit $value], [ignore], [$output],
      [], [touch cleanup.failure], [touch cleanup.success])],
   [], [], [], [],
@@ -487,23 +488,29 @@ AT_CHECK_AT_TEST([Cleanup],
    AT_CHECK([test -f micro-suite.dir/1/cleanup.success])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.failure])
 
-   AT_CHECK([$CONFIG_SHELL ./micro-suite -d value=1], [], [ignore])
+   AT_CHECK([$CONFIG_SHELL ./micro-suite -d xfail=false value=1], [], [ignore])
    AT_CHECK([test -f micro-suite.dir/1/cleanup.success])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.failure])
 
-   AT_CHECK([$CONFIG_SHELL ./micro-suite -d value=1 output=mismatch],
+   AT_CHECK([$CONFIG_SHELL ./micro-suite xfail=: value=0],
+     [1], [ignore], [ignore])
+   AT_CHECK([test -f micro-suite.dir/1/cleanup.success])
+   AT_CHECK([test ! -f micro-suite.dir/1/cleanup.failure])
+
+   AT_CHECK([$CONFIG_SHELL ./micro-suite -d xfail=false value=1 output=mismatch],
      [1], [ignore], [ignore])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.success])
    AT_CHECK([test -f micro-suite.dir/1/cleanup.failure])
 
-   AT_CHECK([$CONFIG_SHELL ./micro-suite -d value=77], [], [ignore])
+   AT_CHECK([$CONFIG_SHELL ./micro-suite -d xfail=false value=77], [], [ignore])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.success])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.failure])
 
-   AT_CHECK([$CONFIG_SHELL ./micro-suite -d value=99], [1], [ignore], [ignore])
+   AT_CHECK([$CONFIG_SHELL ./micro-suite -d xfail=false value=99],
+     [1], [ignore], [ignore])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.success])
    AT_CHECK([test ! -f micro-suite.dir/1/cleanup.failure])
-  ], [-d value=0])
+  ], [-d xfail=false value=0])
 
 ## ----------------------------------------------------- ##
 ## Newlines and command substitutions in test commands.  ##


hooks/post-receive
-- 
GNU Autoconf source repository