summaryrefslogtreecommitdiff
path: root/src/test/test-user-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-10 19:19:02 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-11 14:32:24 +0900
commit51b274d88168c7142610d9eb21a0f748d09068f5 (patch)
treed3aeaf38b578bb67768b5b7a92f49340182b86e3 /src/test/test-user-util.c
parentb35028ebaa2d2ca384bd67b4e38483a5de181935 (diff)
downloadsystemd-51b274d88168c7142610d9eb21a0f748d09068f5.tar.gz
test-user-util: fix line break confusion
This fixes some line-break confusion introduced by #11199 (c6cecb744b53561efd329309af7d02a3f9979ed1). It also restores a test with GID_INVALID that was dropped, presumably by accident.
Diffstat (limited to 'src/test/test-user-util.c')
-rw-r--r--src/test/test-user-util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test-user-util.c b/src/test/test-user-util.c
index 8924b5f95a..94ca3f04ba 100644
--- a/src/test/test-user-util.c
+++ b/src/test/test-user-util.c
@@ -379,7 +379,9 @@ static void test_make_salt(void) {
static void test_in_gid(void) {
assert(in_gid(getgid()) >= 0);
- assert(in_gid(getegid()) >= 0); assert(in_gid(TTY_GID) == 0); /* The TTY gid is for owning ttys, it would be really really weird if we were in it. */
+ assert(in_gid(getegid()) >= 0);
+ assert(in_gid(GID_INVALID) < 0);
+ assert(in_gid(TTY_GID) == 0); /* The TTY gid is for owning ttys, it would be really really weird if we were in it. */
}
static void test_gid_lists_ops(void) {