From 5f0e4d2fb4188b58dd24c749a732faf6fef1f75b Mon Sep 17 00:00:00 2001 From: Unique-Usman Date: Wed, 20 Mar 2024 23:05:55 +0530 Subject: Added more ASSERT macro and also make some test file to use them --- src/test/test-user-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/test-user-util.c') diff --git a/src/test/test-user-util.c b/src/test/test-user-util.c index db76cde0a2..f115a47773 100644 --- a/src/test/test-user-util.c +++ b/src/test/test-user-util.c @@ -137,8 +137,8 @@ TEST(parse_uid) { } TEST(uid_ptr) { - assert_se(UID_TO_PTR(0) != NULL); - assert_se(UID_TO_PTR(1000) != NULL); + ASSERT_NOT_NULL(UID_TO_PTR(0)); + ASSERT_NOT_NULL(UID_TO_PTR(1000)); assert_se(PTR_TO_UID(UID_TO_PTR(0)) == 0); assert_se(PTR_TO_UID(UID_TO_PTR(1000)) == 1000); -- cgit v1.2.3