aboutsummaryrefslogtreecommitdiff
path: root/t/unit-tests/unit-test.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-12-06 12:47:32 +0100
committerJunio C Hamano <gitster@pobox.com>2025-12-07 07:25:15 +0900
commitd5e4aef3586c07c31e3e4d76ce7fdf0f9843314f (patch)
tree5477b82e8ace04f4ea6c450afc19adeb8f465f5a /t/unit-tests/unit-test.h
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff)
downloadgit-d5e4aef3586c07c31e3e4d76ce7fdf0f9843314f.tar.xz
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>
Diffstat (limited to 't/unit-tests/unit-test.h')
-rw-r--r--t/unit-tests/unit-test.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/t/unit-tests/unit-test.h b/t/unit-tests/unit-test.h
index 39a0b72a05..5398b44917 100644
--- a/t/unit-tests/unit-test.h
+++ b/t/unit-tests/unit-test.h
@@ -7,9 +7,3 @@
#else
# include GIT_CLAR_DECLS_H
#endif
-
-#define cl_failf(fmt, ...) do { \
- char desc[4096]; \
- snprintf(desc, sizeof(desc), fmt, __VA_ARGS__); \
- clar__fail(__FILE__, __func__, __LINE__, "Test failed.", desc, 1); \
-} while (0)