]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "test-journal-flush: Don't fail on EADDRNOTAVAIL"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Oct 2022 17:48:53 +0000 (02:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2022 05:47:37 +0000 (14:47 +0900)
This reverts commit 3388a4b5820012b945d9925446764717afcdb5b0.

The error EADDRNOTAVAIL in the test only comes from journal_file_move_to(),
and it does not mean the corrupted journal, but pure programming error.

src/journal/test-journal-flush.c

index 421cae06b2a28dac4e3fc94c55e77737ad648736..c734aa02ca4e12a06142c272205d39985db6293e 100644 (file)
@@ -58,8 +58,7 @@ static void test_journal_flush(int argc, char *argv[]) {
                 assert_se(r >= 0 ||
                           IN_SET(r, -EBADMSG,         /* corrupted file */
                                     -EPROTONOSUPPORT, /* unsupported compression */
-                                    -EIO,             /* file rotated */
-                                    -EADDRNOTAVAIL)); /* corrupted file */
+                                    -EIO));           /* file rotated */
 
                 if (++n >= 10000)
                         break;