tests: add test that journald keeps fds over termination by signal
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 20 Oct 2016 13:18:12 +0000 (13:18 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 2 Nov 2016 01:20:26 +0000 (21:20 -0400)
This test fails before previous commit, and passes with it.

test/TEST-04-JOURNAL/test-journal.sh

index 6646ecc..493ff00 100755 (executable)
@@ -59,4 +59,12 @@ sleep 3
 systemctl stop forever-print-hola
 [[ ! -f "/i-lose-my-logs" ]]
 
+# https://github.com/systemd/systemd/issues/4408
+rm -f /i-lose-my-logs
+systemctl start forever-print-hola
+sleep 3
+systemctl kill --signal=SIGKILL systemd-journald
+sleep 3
+[[ ! -f "/i-lose-my-logs" ]]
+
 touch /testok