Skip to content

Commit 6e71d6a

Browse files
five-shgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 39bf06a commit 6e71d6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/unit-tests/test-lib.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ int test_assert(const char *location, const char *check, int ok);
7676
int check_bool_loc(const char *loc, const char *check, int ok);
7777

7878
/*
79-
* Compare two integers. Prints a message with the two values if the
80-
* comparison fails. NB this is not thread safe.
79+
* Compare the equality of two pointers of same type. Prints a message
80+
* with the two values if the equality fails. NB this is not thread
81+
* safe.
8182
*/
8283
#define check_pointer_eq(a, b) \
8384
(test__tmp[0].p = (a), test__tmp[1].p = (b), \

0 commit comments

Comments
 (0)