test: append to corrupted journals
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 13 May 2023 15:39:35 +0000 (17:39 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 6 Jul 2023 20:41:27 +0000 (22:41 +0200)
commit29bdeb5cb390ab68a42b8710429095d5a1732e11
tree1151b51c9d24dff0404e1f5da080a8be4b359811
parent6bbfa9c21471c9848ee601555514071ce7dde068
test: append to corrupted journals

Introduce a manual test tool that creates a journal, corrupts it by
flipping bits at given offsets, and then attempts to write to the journal.
In ideal case we should handle this gracefully without any crash or
memory corruption.
src/journal/meson.build
src/journal/test-journal-append.c [new file with mode: 0644]
test/units/testsuite-04.journal-append.sh [new file with mode: 0755]