summaryrefslogtreecommitdiff
path: root/t/unit-tests/test-lib.h
diff options
context:
space:
mode:
authorKousik Sanagavarapu <five231003@gmail.com>2024-07-29 10:02:48 +0530
committerJunio C Hamano <gitster@pobox.com>2024-07-29 14:23:14 -0700
commit6e71d6ac7cb575d04c452762662b00a89cd0b0db (patch)
tree69014f3ca522da6ed1090031ba1a22efe2dfa376 /t/unit-tests/test-lib.h
parent39bf06adf96da25b87c9aa7d35a32ef3683eb4a4 (diff)
unit-tests/test-lib: fix typo in check_pointer_eq() description
The comment surrounding check_pointer_eq() should explain about what this function does instead of explaining check_int(). Correct this. Signed-off-by: Kousik Sanagavarapu <five231003@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/test-lib.h')
-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), \