test: avoid asserting on default user shell
authorLuca Boccassi <bluca@debian.org>
Thu, 16 Nov 2023 23:17:29 +0000 (23:17 +0000)
committerLuca Boccassi <bluca@debian.org>
Thu, 16 Nov 2023 23:17:31 +0000 (23:17 +0000)
commitdcddb2fc6bdf74c4c1a1a3f73b36fea37d7ea086
tree5f3abbe00866084e6094b32c5e3a75dc3357636c
parent210dcd8fc65164d4ebb3ede407916a0b00932021
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
src/test/test-user-util.c