Merge pull request #30066 from bluca/test

fsck/shell test fixes
This commit is contained in:
Luca Boccassi
2023-11-17 09:39:48 +00:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -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);

View File

@@ -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) {