test-journal-flush: use archived journal if possible
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Apr 2024 05:20:11 +0000 (14:20 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 08:50:43 +0000 (10:50 +0200)
commit8719a65003bd48d76db8c10ba2dd1893f6b9b859
tree3fa574f3d35250395be8b858619843ba23bf3ec8
parent6c699c61ca8098e3a0b522119360c20dd232c85a
test-journal-flush: use archived journal if possible

Workaround for #32436.

The test may fail if the journal is vacuumed or rotated during the test is running.
Let's use the newest archive file for safety.
src/libsystemd/sd-journal/test-journal-flush.c