diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c index 96a4fce6304..f5a425689a3 100644 --- a/src/test/test-path-util.c +++ b/src/test/test-path-util.c @@ -620,8 +620,8 @@ TEST(fsck_exists) { /* Ensure we use a sane default for PATH. */ assert_se(unsetenv("PATH") == 0); - /* fsck.minix is provided by util-linux and will probably exist. */ - assert_se(fsck_exists_for_fstype("minix") == 1); + /* We might or might not find one of these, so keep the test lax. */ + assert_se(fsck_exists_for_fstype("minix") >= 0); assert_se(fsck_exists_for_fstype("AbCdE") == 0); assert_se(fsck_exists_for_fstype("/../bin/") == 0); diff --git a/src/test/test-user-util.c b/src/test/test-user-util.c index 66f3b38050a..db76cde0a26 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) {