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:
parent
8f12ee7178
commit
e7848266da
@ -104,6 +104,7 @@ fi
|
||||
|
||||
BASICTOOLS=(
|
||||
awk
|
||||
base64
|
||||
basename
|
||||
bash
|
||||
busybox
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user