]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-journal-flush: Don't fail on EADDRNOTAVAIL
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 11 Oct 2022 12:01:04 +0000 (14:01 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Oct 2022 14:03:06 +0000 (23:03 +0900)
File corruption can cause EADDRNOTAVAIL errors. Let's not make these
fatal for the flush test.

src/journal/test-journal-flush.c

index c734aa02ca4e12a06142c272205d39985db6293e..421cae06b2a28dac4e3fc94c55e77737ad648736 100644 (file)
@@ -58,7 +58,8 @@ 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 */
+                                    -EIO,             /* file rotated */
+                                    -EADDRNOTAVAIL)); /* corrupted file */
 
                 if (++n >= 10000)
                         break;