diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2021-12-09 00:10:59 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-13 10:29:48 -0800 |
commit | fe13adb17b7fcf0560139bb279d6d1274c84bec9 (patch) | |
tree | 2c91933832c875f5c9be7ea37f78b8851bb98a7c /strbuf.h | |
parent | t1010: fix unnoticed failure on Windows (diff) | |
download | tgif-fe13adb17b7fcf0560139bb279d6d1274c84bec9.tar.xz |
t1020: avoid aborting entire test script when one test fails
Although `exit 1` is the proper way to signal a test failure from within
a subshell, its use outside any subshell should be avoided since it
aborts the entire script rather than aborting only the failed test.
Instead, a simple `return 1` is the proper idiom for signaling failure
outside a subshell since it aborts only the test in question, not the
entire script.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
0 files changed, 0 insertions, 0 deletions