From: msizanoen1 Date: Wed, 12 Oct 2022 08:38:25 +0000 (+0700) Subject: test-journal-flush: don't fail on -EREMCHG X-Git-Tag: v253-rc1~143^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cd80d8a580d63320efb245fc9c30c1365629ba1;p=thirdparty%2Fsystemd.git test-journal-flush: don't fail on -EREMCHG -EREMCHG on write is now used to denote clock rollback conditions detected during journal write. --- diff --git a/src/journal/test-journal-flush.c b/src/journal/test-journal-flush.c index c734aa02ca4..b78e073ddd5 100644 --- a/src/journal/test-journal-flush.c +++ b/src/journal/test-journal-flush.c @@ -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;