summaryrefslogtreecommitdiffstats
path: root/src/test/test-user-util.c
diff options
context:
space:
mode:
authorUnique-Usman <usmanakinyemi202@gmail.com>2024-03-20 18:35:55 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-03-22 13:31:14 +0100
commit5f0e4d2fb4188b58dd24c749a732faf6fef1f75b (patch)
treebb6114540de3e14dca92199e1537b104da8a0cb8 /src/test/test-user-util.c
parentMerge pull request #31902 from YHNdnzj/swap-followup (diff)
downloadsystemd-5f0e4d2fb4188b58dd24c749a732faf6fef1f75b.tar.xz
systemd-5f0e4d2fb4188b58dd24c749a732faf6fef1f75b.zip
Added more ASSERT macro and also make some test file to use them
Diffstat (limited to 'src/test/test-user-util.c')
-rw-r--r--src/test/test-user-util.c4
1 files changed, 2 insertions, 2 deletions
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);