]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: update clar to 39f11fe
authorPatrick Steinhardt <ps@pks.im>
Sat, 6 Dec 2025 11:47:32 +0000 (12:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:25:15 +0000 (07:25 +0900)
commitd5e4aef3586c07c31e3e4d76ce7fdf0f9843314f
tree5477b82e8ace04f4ea6c450afc19adeb8f465f5a
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
t/unit-tests: update clar to 39f11fe

Update clar to commit 39f11fe (Merge pull request #131 from
pks-gitlab/pks-integer-double-evaluation, 2025-12-05). This commit
includes the following changes relevant to Git:

  - There are now typesafe integer comparison functions. Furthermore,
    the range of comparison functions has been included to also have
    relative comparisons, like "greater than".

  - There is a new `cl_failf()` macro that allows the caller to specify
    an error message with formatting directives.

  - The TAP format has been fixed to correctly terminate YAML blocks
    with "...\n" instead of "---\n".

Note that we already had a `cl_failf()` function declared in our own
sources. This function is equivalent to the upstreamed function, so we
can simply drop it now.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
t/unit-tests/clar/.github/workflows/ci.yml
t/unit-tests/clar/clar.c
t/unit-tests/clar/clar.h
t/unit-tests/clar/clar/print.h
t/unit-tests/clar/test/expected/quiet
t/unit-tests/clar/test/expected/summary_with_filename
t/unit-tests/clar/test/expected/summary_without_filename
t/unit-tests/clar/test/expected/tap
t/unit-tests/clar/test/expected/without_arguments
t/unit-tests/clar/test/selftest.c
t/unit-tests/clar/test/suites/combined.c
t/unit-tests/unit-test.h