From: Luca Boccassi Date: Thu, 16 Nov 2023 23:17:29 +0000 (+0000) Subject: test: avoid asserting on default user shell X-Git-Tag: v255~131^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcddb2fc6bdf74c4c1a1a3f73b36fea37d7ea086;p=platform%2Fupstream%2Fsystemd.git 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 --- diff --git a/src/test/test-user-util.c b/src/test/test-user-util.c index 66f3b38..db76cde 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) {