summaryrefslogtreecommitdiff
path: root/sha256/block
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2021-12-09 00:10:59 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-13 10:29:48 -0800
commitfe13adb17b7fcf0560139bb279d6d1274c84bec9 (patch)
tree2c91933832c875f5c9be7ea37f78b8851bb98a7c /sha256/block
parentt1010: fix unnoticed failure on Windows (diff)
downloadtgif-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 'sha256/block')
0 files changed, 0 insertions, 0 deletions