From c67a96c4c15a738e7b1ab28c652f5f511e121cdb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 17 Dec 2010 22:39:47 -0800 Subject: 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. --- tests/init.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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. -- cgit v1.2.3-54-g00ecf