aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2005-08-11 12:00:40 -0400
committerJunio C Hamano <junkio@cox.net>2005-08-11 18:26:16 -0700
commit41184273d173c252532b3aba730ee7fdf35291f4 (patch)
tree0bc87413c16aefcbfb5d896043f7fec6b9065262 /tools
parent4d9d62fa7ca01c481d224e2a2187e38ec2f0996a (diff)
downloadgit-41184273d173c252532b3aba730ee7fdf35291f4.tar.gz
git-41184273d173c252532b3aba730ee7fdf35291f4.tar.xz
[PATCH] Trapping exit in tests, using return for errors: further fixes.
"return" from a test would leave the exit trap set, which could cause a spurious error message if it's the last test in the script or --immediate is used. The easiest solution would be to have a global trap that is set when test-lib.sh is sourced and unset either by test_done(), error() or by test_failure_() with --immediate. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions