summaryrefslogtreecommitdiffstats
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2021-12-09 06:10:59 +0100
committerJunio C Hamano <gitster@pobox.com>2021-12-13 19:29:48 +0100
commitfe13adb17b7fcf0560139bb279d6d1274c84bec9 (patch)
tree2c91933832c875f5c9be7ea37f78b8851bb98a7c /diffcore-rename.c
parentt1010: fix unnoticed failure on Windows (diff)
downloadgit-fe13adb17b7fcf0560139bb279d6d1274c84bec9.tar.xz
git-fe13adb17b7fcf0560139bb279d6d1274c84bec9.zip
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 'diffcore-rename.c')
0 files changed, 0 insertions, 0 deletions