aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-12-20 10:15:49 -0800
committerJunio C Hamano <gitster@pobox.com>2019-12-20 11:30:44 -0800
commit7717242014dc59f58db7e56c2b8f9fc79e04fa0b (patch)
tree00a0352de16f1ca6957ee219e6391636516db1cc /builtin/commit.c
parentt/lib-git-p4: use test_path_is_missing() (diff)
downloadgit-7717242014dc59f58db7e56c2b8f9fc79e04fa0b.tar.gz
git-7717242014dc59f58db7e56c2b8f9fc79e04fa0b.zip
t0000: replace test_must_fail with run_sub_test_lib_test_err()
The test_must_fail function should only be used for git commands since we should assume that external commands work sanely. We use test_must_fail to test run_sub_test_lib_test() but that function does not invoke any git commands internally. Even better, we have a function that's exactly meant to be used when we expect to have a failing test suite: run_sub_test_lib_test_err()! Replace `test_must_fail run_sub_test_lib_test` with `run_sub_test_lib_test_err`. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions