autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Keep testsuite files on unexpected pass.


From: Peter Rosin
Subject: [PATCH] Keep testsuite files on unexpected pass.
Date: Tue, 10 Aug 2010 11:48:21 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

Hi!

I have now gotten sufficiently annoyed about the libtool testsuite
not keeping files around for me when a test unexpectedly passes.

So, this fixes that.

Cheers,
Peter

From 42cc8c42e44c45d4382b253c82b29d87550f827a Mon Sep 17 00:00:00 2001
From: Peter Rosin <address@hidden>
Date: Tue, 10 Aug 2010 11:46:32 +0200
Subject: [PATCH] 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.

Signed-off-by: Peter Rosin <address@hidden>
---
 ChangeLog               |    6 ++++++
 lib/autotest/general.m4 |    5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 87768b8..a8208f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-10  Peter Rosin  <address@hidden>
+
+       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.
+
 2010-08-06  Ralf Wildenhues  <address@hidden>

        Fix description of AC_CONFIG_TESTDIR to not mention atconfig.in.
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
--
1.6.4.2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]