diff options
author | Luca Boccassi <bluca@debian.org> | 2023-11-17 00:17:29 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-11-17 00:17:31 +0100 |
commit | dcddb2fc6bdf74c4c1a1a3f73b36fea37d7ea086 (patch) | |
tree | 5f3abbe00866084e6094b32c5e3a75dc3357636c /src/test/test-user-util.c | |
parent | test: minix fsck not found on alpha (diff) | |
download | systemd-dcddb2fc6bdf74c4c1a1a3f73b36fea37d7ea086.tar.xz systemd-dcddb2fc6bdf74c4c1a1a3f73b36fea37d7ea086.zip |
test: avoid asserting on default user shell
In some build environments it might differ:
/* test_get_user_creds_one("root", "root", 0, 0, "/root", "/usr/bin/bash") */
got "root", 0, 0, "/root", "/bin/sh": Success
Assertion 'path_equal(rshell, shell)' failed at src/test/test-user-util.c:345, function test_get_user_creds_one(). Aborting.
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=alpha&ver=255%7Erc2-1&stamp=1700147880&raw=0
Diffstat (limited to 'src/test/test-user-util.c')
-rw-r--r-- | src/test/test-user-util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/test-user-util.c b/src/test/test-user-util.c index 66f3b38050..db76cde0a2 100644 --- a/src/test/test-user-util.c +++ b/src/test/test-user-util.c @@ -342,7 +342,6 @@ static void test_get_user_creds_one(const char *id, const char *name, uid_t uid, assert_se(ruid == uid); assert_se(rgid == gid); assert_se(path_equal(rhome, home)); - assert_se(path_equal(rshell, shell)); } TEST(get_user_creds) { |