summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-12-17 22:39:47 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2010-12-17 22:40:20 -0800
commitc67a96c4c15a738e7b1ab28c652f5f511e121cdb (patch)
tree2930662f63bf671124fc9cf140154f14caf8d192
parent561f8be2c9b539ff55f31db3678b70a1509337f4 (diff)
downloadcoreutils-c67a96c4c15a738e7b1ab28c652f5f511e121cdb.tar.xz
tests: set fail=0 by default
* tests/init.sh (setup_): Set fail=0. This was the intent as per <http://lists.gnu.org/archive/html/bug-coreutils/2010-12/msg00058.html> but the assignment in mktempd_ is ineffective, since mktempd_ is used inside `` and its assignments are in a subshell.
-rw-r--r--tests/init.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index a57de77a2..7be5e9e8a 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -336,6 +336,9 @@ setup_()
for sig_ in 1 2 3 13 15; do
eval "trap 'Exit $(expr $sig_ + 128)' $sig_"
done
+
+ # Set up for the "Exit $fail" at the end of many tests.
+ fail=0
}
# Create a temporary directory, much like mktemp -d does.