+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
# 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
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 )
# 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
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])
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