test: minix fsck not found on alpha
authorLuca Boccassi <bluca@debian.org>
Thu, 16 Nov 2023 23:01:08 +0000 (23:01 +0000)
committerLuca Boccassi <bluca@debian.org>
Thu, 16 Nov 2023 23:01:46 +0000 (23:01 +0000)
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

src/test/test-path-util.c

index 96a4fce630492ecfccb43726ab706569a481268c..f5a425689a3f0a9481484e6916e481d0ea47a717 100644 (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);