summaryrefslogtreecommitdiff
path: root/test/testuser.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testuser.c')
-rw-r--r--test/testuser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testuser.c b/test/testuser.c
index 2029bea84..e75782e90 100644
--- a/test/testuser.c
+++ b/test/testuser.c
@@ -44,6 +44,9 @@ static void username(abts_case *tc, void *data)
apr_uid_name_get(&uname, uid, p));
ABTS_PTR_NOTNULL(tc, uname);
+ if (uname == NULL)
+ return;
+
APR_ASSERT_SUCCESS(tc, "apr_uid_get failed",
apr_uid_get(&retreived_uid, &retreived_gid, uname, p));
@@ -87,6 +90,9 @@ static void groupname(abts_case *tc, void *data)
apr_gid_name_get(&gname, gid, p));
ABTS_PTR_NOTNULL(tc, gname);
+ if (gname == NULL)
+ return;
+
APR_ASSERT_SUCCESS(tc, "apr_gid_get failed",
apr_gid_get(&retreived_gid, gname, p));