]> git.ipfire.org Git - thirdparty/git.git/commitdiff
unit-tests/test-lib: fix typo in check_pointer_eq() description
authorKousik Sanagavarapu <five231003@gmail.com>
Mon, 29 Jul 2024 04:32:48 +0000 (10:02 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jul 2024 21:23:14 +0000 (14:23 -0700)
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>
t/unit-tests/test-lib.h

index 2de6d715d5f4c38dc1c1d9060577ce05f498daba..c59f646fd9f4855973ba2aa2ec2980cb999b42d4 100644 (file)
@@ -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),                    \