mirror of
https://github.com/systemd/systemd
synced 2024-10-14 12:04:49 +00:00
test: add a testcase for issue #19895
This commit is contained in:
parent
8f12ee7178
commit
e7848266da
|
@ -104,6 +104,7 @@ fi
|
||||||
|
|
||||||
BASICTOOLS=(
|
BASICTOOLS=(
|
||||||
awk
|
awk
|
||||||
|
base64
|
||||||
basename
|
basename
|
||||||
bash
|
bash
|
||||||
busybox
|
busybox
|
||||||
|
|
|
@ -2,6 +2,21 @@
|
||||||
set -eux
|
set -eux
|
||||||
set -o pipefail
|
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
|
# Test stdout stream
|
||||||
|
|
||||||
# Skip empty lines
|
# Skip empty lines
|
||||||
|
|
Loading…
Reference in a new issue