]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-journal-flush: don't fail on -EREMCHG
authormsizanoen1 <msizanoen@qtmlabs.xyz>
Wed, 12 Oct 2022 08:38:25 +0000 (15:38 +0700)
committermsizanoen1 <msizanoen@qtmlabs.xyz>
Mon, 9 Jan 2023 15:57:50 +0000 (22:57 +0700)
-EREMCHG on write is now used to denote clock rollback conditions
detected during journal write.

src/journal/test-journal-flush.c

index c734aa02ca4e12a06142c272205d39985db6293e..b78e073ddd5c2dc04a7933769f4d83e79630fe86 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 */
+                                    -EREMCHG));       /* clock rollback */
 
                 if (++n >= 10000)
                         break;