diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-04-12 13:21:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-11 12:48:09 +0900 |
commit | 33b4ae11146ba0c468176d238d231e1101ba19cd (patch) | |
tree | daaacd66d304d7baf7b26cda1f630cf0c746d5f5 /pack-bitmap.h | |
parent | describe tests: don't rely on err.actual from "check_describe" (diff) | |
download | tgif-33b4ae11146ba0c468176d238d231e1101ba19cd.tar.xz |
describe tests: fix nested "test_expect_success" call
Fix a nested invocation of "test_expect_success", the
"check_describe()" function is a wrapper for calling
test_expect_success, and therefore needs to be called outside the body
of another "test_expect_success".
The two tests added in 30b1c7ad9d6 (describe: don't abort too early
when searching tags, 2020-02-26) were not testing for anything due to
this logic error. Without this fix reverting the C code changes in
that commit still has all tests passing, with this fix we're actually
testing the "describe" output. This is because "test_expect_success"
calls "test_finish_", whose last statement happens to be true.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
0 files changed, 0 insertions, 0 deletions