]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-journal-interleaving: extend tests to clarify the issue in sd_journal_next(...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 21 May 2023 16:56:08 +0000 (01:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 21 May 2023 17:49:25 +0000 (02:49 +0900)
commit43e460a5842ee42b9f62fbd690e48e823364b03e
tree9f3c809376047bd6f525cfeac03b002296adc3b6
parent9e36da1541f3ff204290547ce1da0a18b0df75b8
test-journal-interleaving: extend tests to clarify the issue in sd_journal_next() or friends

This illustrates bug in sd_journal_next() or friends;
calling sd_jounral_next() followed by sd_journal_seek_tail() makes the
location saved in sd-journal something corrupted, and subsequent
sd_journal_previous() or friends may fail or provides unexpected result.
src/journal/test-journal-interleaving.c