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.
This commit is contained in:
Paul Eggert 2010-12-17 22:39:47 -08:00
parent 561f8be2c9
commit c67a96c4c1

View 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.