diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-09-29 11:40:33 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-09-29 11:40:33 -0700 |
| commit | 347af012dba8794d003e4ae061131e3b7acdd558 (patch) | |
| tree | f8f0df3271d2bca9c0d98af150e114e75cca35a1 /t/unit-tests/clar/test/suites/pointer.c | |
| parent | bb69721404348ea2db0a081c41ab6ebfe75bdec8 (diff) | |
| parent | 93dbb6b3c572fc8877b56233730b5d12b327a7a4 (diff) | |
Merge branch 'ps/clar-updates'
Import a newer version of the clar unit testing framework.
* ps/clar-updates:
t/unit-tests: update to 10e96bc
t/unit-tests: update clar to fcbed04
Diffstat (limited to 't/unit-tests/clar/test/suites/pointer.c')
| -rw-r--r-- | t/unit-tests/clar/test/suites/pointer.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/unit-tests/clar/test/suites/pointer.c b/t/unit-tests/clar/test/suites/pointer.c new file mode 100644 index 0000000000..20535b159e --- /dev/null +++ b/t/unit-tests/clar/test/suites/pointer.c @@ -0,0 +1,13 @@ +#include "clar.h" + +void test_pointer__equal(void) +{ + void *p1 = (void *)0x1; + cl_assert_equal_p(p1, p1); +} + +void test_pointer__unequal(void) +{ + void *p1 = (void *)0x1, *p2 = (void *)0x2; + cl_assert_equal_p(p1, p2); +} |
