projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f1c446
)
test-user-util: Drop tty check in gid_to_name() test
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Fri, 4 Aug 2023 13:23:16 +0000
(15:23 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Fri, 4 Aug 2023 14:48:39 +0000
(16:48 +0200)
The tty user is not guaranteed to exist, so let's remove the dependency
from the test.
src/test/test-user-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-user-util.c
b/src/test/test-user-util.c
index 48d9b1e0fb987a505a1283c5a274007dde03074e..66f3b38050a8f68d1af48ea0f7b31d725dc42193 100644
(file)
--- 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");
}