1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

test: add a testcase for issue #19895

This commit is contained in:
Frantisek Sumsal 2021-06-15 15:34:41 +09:00 committed by Luca Boccassi
parent 8f12ee7178
commit e7848266da
2 changed files with 16 additions and 0 deletions

View File

@ -104,6 +104,7 @@ fi
BASICTOOLS=(
awk
base64
basename
bash
busybox

View File

@ -2,6 +2,21 @@
set -eux
set -o pipefail
# Limit the maximum journal size
trap "journalctl --rotate --vacuum-size=16M" EXIT
# Rotation/flush test, see https://github.com/systemd/systemd/issues/19895
journalctl --relinquish-var
for i in {0..50}; do
dd if=/dev/urandom bs=1M count=1 | base64 | systemd-cat
done
journalctl --rotate
journalctl --flush
journalctl --sync
# Reset the ratelimit buckets for the subsequent tests below.
systemctl restart systemd-journald
# Test stdout stream
# Skip empty lines