From: Paul Eggert Date: Sat, 18 Dec 2010 06:39:47 +0000 (-0800) Subject: tests: set fail=0 by default X-Git-Tag: v8.8~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c67a96c4c15a738e7b1ab28c652f5f511e121cdb;p=thirdparty%2Fcoreutils.git tests: set fail=0 by default * tests/init.sh (setup_): Set fail=0. This was the intent as per but the assignment in mktempd_ is ineffective, since mktempd_ is used inside `` and its assignments are in a subshell. --- diff --git a/tests/init.sh b/tests/init.sh index a57de77a2f..7be5e9e8aa 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.