summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-08-08 19:41:17 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-08 19:41:17 +0200
commitf250b51b49d540980470edc0dc0d171d50ae3a93 (patch)
tree582b4dfa79596b7f1c356e92ffb5a5557e49d100 /t
parentThe second batch (diff)
parentunit-tests/test-lib: fix typo in check_pointer_eq() description (diff)
downloadgit-f250b51b49d540980470edc0dc0d171d50ae3a93.tar.xz
git-f250b51b49d540980470edc0dc0d171d50ae3a93.zip
Merge branch 'ks/unit-test-comment-typofix'
Typofix. * ks/unit-test-comment-typofix: unit-tests/test-lib: fix typo in check_pointer_eq() description
Diffstat (limited to 't')
-rw-r--r--t/unit-tests/test-lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/unit-tests/test-lib.h b/t/unit-tests/test-lib.h
index 2de6d715d5..c59f646fd9 100644
--- a/t/unit-tests/test-lib.h
+++ b/t/unit-tests/test-lib.h
@@ -76,8 +76,9 @@ int test_assert(const char *location, const char *check, int ok);
int check_bool_loc(const char *loc, const char *check, int ok);
/*
- * Compare two integers. Prints a message with the two values if the
- * comparison fails. NB this is not thread safe.
+ * Compare the equality of two pointers of same type. Prints a message
+ * with the two values if the equality fails. NB this is not thread
+ * safe.
*/
#define check_pointer_eq(a, b) \
(test__tmp[0].p = (a), test__tmp[1].p = (b), \