From a1fedc613fe90b9f1f253fd02a7a6575351a27cc Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 4 Aug 2023 15:23:16 +0200 Subject: [PATCH] test-user-util: Drop tty check in gid_to_name() test The tty user is not guaranteed to exist, so let's remove the dependency from the test. --- src/test/test-user-util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/test-user-util.c b/src/test/test-user-util.c index 48d9b1e0fb9..66f3b38050a 100644 --- a/src/test/test-user-util.c +++ b/src/test/test-user-util.c @@ -47,7 +47,6 @@ static void test_gid_to_name_one(gid_t gid, const char *name) { TEST(gid_to_name) { test_gid_to_name_one(0, "root"); test_gid_to_name_one(GID_NOBODY, NOBODY_GROUP_NAME); - test_gid_to_name_one(TTY_GID, "tty"); test_gid_to_name_one(0xFFFF, "65535"); test_gid_to_name_one(0xFFFFFFFF, "4294967295"); }