1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

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.

(cherry picked from commit a1fedc613fe90b9f1f253fd02a7a6575351a27cc)
(cherry picked from commit 865f0d6e76bcfbf880986b4b08c54baf9354e8a6)
This commit is contained in:
Daan De Meyer 2023-08-04 15:23:16 +02:00 committed by Luca Boccassi
parent d0a3467f47
commit a99dfdca88

View File

@ -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) {
test_gid_to_name_one(0, "root"); test_gid_to_name_one(0, "root");
test_gid_to_name_one(GID_NOBODY, NOBODY_GROUP_NAME); 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(0xFFFF, "65535");
test_gid_to_name_one(0xFFFFFFFF, "4294967295"); test_gid_to_name_one(0xFFFFFFFF, "4294967295");
} }