diff options
author | Pavel Roskin <proski@gnu.org> | 2005-08-11 12:00:40 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-11 18:26:16 -0700 |
commit | 41184273d173c252532b3aba730ee7fdf35291f4 (patch) | |
tree | 0bc87413c16aefcbfb5d896043f7fec6b9065262 /ppc | |
parent | [PATCH] Trapping exit in tests, using return for errors (diff) | |
download | tgif-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 'ppc')
0 files changed, 0 insertions, 0 deletions