]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: set fail=0 by default
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Dec 2010 06:39:47 +0000 (22:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Dec 2010 06:40:20 +0000 (22:40 -0800)
* 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.

tests/init.sh

index a57de77a2f1ac47a83be0adf463b8c05b9221790..7be5e9e8aaee568cf78ec1caf05572c035bf5444 100644 (file)
@@ -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.