diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-12-30 04:33:43 +0100 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-12-30 06:00:14 +0100 |
commit | 3889613ec6bc54b9e02955f62b9d5c5b571c3d4b (patch) | |
tree | ec529a3659fa618257f7dc2ecbe62e8cca12c3bd /test/TEST-04-JOURNAL/test-journal.sh | |
parent | Merge pull request #2237 from evverx/fix-valgrind-tests (diff) | |
download | systemd-3889613ec6bc54b9e02955f62b9d5c5b571c3d4b.tar.xz systemd-3889613ec6bc54b9e02955f62b9d5c5b571c3d4b.zip |
tests: add regression test for `systemctl restart systemd-journald`
See https://github.com/systemd/systemd/issues/2236
Diffstat (limited to 'test/TEST-04-JOURNAL/test-journal.sh')
-rwxr-xr-x | test/TEST-04-JOURNAL/test-journal.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/TEST-04-JOURNAL/test-journal.sh b/test/TEST-04-JOURNAL/test-journal.sh index 1ee39df432..3a05619ad5 100755 --- a/test/TEST-04-JOURNAL/test-journal.sh +++ b/test/TEST-04-JOURNAL/test-journal.sh @@ -51,5 +51,13 @@ journalctl --sync journalctl -b -o cat -t "$ID" >/output cmp /expected /output +# Don't lose streams on restart +systemctl start forever-print-hola +sleep 3 +systemctl restart systemd-journald +sleep 3 +systemctl stop forever-print-hola +[[ ! -f "/i-lose-my-logs" ]] + touch /testok exit 0 |