]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autotest/general.m4 (AT_INIT): With --clean, return exit
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 13 Feb 2007 06:22:45 +0000 (06:22 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 13 Feb 2007 06:22:45 +0000 (06:22 +0000)
status of rm so we know when it failed.
If cleaning of test dir failed before running the test, warn.
Output the line separator in verbose mode before the warning
to make clear the warning belongs to the following test.

ChangeLog
lib/autotest/general.m4

index 07dfd75c9b5dc0603d5439f5cde0774de780a3aa..7aca622d56c6ed0fe8d1b62807d7403f2294ab1e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/autotest/general.m4 (AT_INIT): With --clean, return exit
+       status of rm so we know when it failed.
+       If cleaning of test dir failed before running the test, warn.
+       Output the line separator in verbose mode before the warning
+       to make clear the warning belongs to the following test.
+
 2007-02-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        * doc/autoconf.texi (Parentheses): Mention problem with (( in
index 2ac95537728ce526c8c39f9f04d758bc4057dc59..139ea432d5646ef803c4e9143f380fab1925dc69 100644 (file)
@@ -1,8 +1,8 @@
 # This file is part of Autoconf.                          -*- Autoconf -*-
 # M4 macros used in building test suites.
 
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+# Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -314,7 +314,7 @@ do
        test -d "$at_suite_dir" &&
          find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
        rm -f -r "$at_suite_dir" "$at_suite_log"
-       exit 0
+       exit $?
        ;;
 
     --debug | -d )
@@ -706,6 +706,9 @@ do
   # Be sure to come back to the top test directory.
   cd "$at_suite_dir"
 
+  # Clearly separate the test groups when verbose.
+  test $at_group_count != 0 && $at_verbose echo
+
   case $at_group in
     banner-*)
       at_group_log=$at_suite_log
@@ -720,7 +723,8 @@ do
       at_group_log=$at_group_dir/$as_me.log
       if test -d "$at_group_dir"; then
        find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
-       rm -fr "$at_group_dir"
+       rm -fr "$at_group_dir" ||
+         AS_WARN([test directory could not be cleaned.])
       fi
       # Be tolerant if the above `rm' was not able to remove the directory.
       AS_MKDIR_P([$at_group_dir])
@@ -730,9 +734,6 @@ do
 
   echo 0 > "$at_status_file"
 
-  # Clearly separate the test groups when verbose.
-  test $at_group_count != 0 && $at_verbose echo
-
   # In verbose mode, append to the log file *and* show on
   # the standard output; in quiet mode only write to the log
   if test -z "$at_verbose"; then