summaryrefslogtreecommitdiffstats
path: root/src/test/test-path-util.c
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-11-17 00:01:08 +0100
committerLuca Boccassi <bluca@debian.org>2023-11-17 00:01:46 +0100
commit210dcd8fc65164d4ebb3ede407916a0b00932021 (patch)
tree900fdb840e9d948a72c3a844bf6b99d42db3c16a /src/test/test-path-util.c
parentMerge pull request #30055 from YHNdnzj/logind-handle-action (diff)
downloadsystemd-210dcd8fc65164d4ebb3ede407916a0b00932021.tar.xz
systemd-210dcd8fc65164d4ebb3ede407916a0b00932021.zip
test: minix fsck not found on alpha
It seems even this one is not everywhere, so relax the test: /* test_fsck_exists */ Assertion 'fsck_exists_for_fstype("minix") == 1' failed at src/test/test-path-util.c:624, function test_fsck_exists(). Aborting. https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=alpha&ver=255%7Erc2-1&stamp=1700147880&raw=0
Diffstat (limited to '')
-rw-r--r--src/test/test-path-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 96a4fce630..f5a425689a 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);