teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0806-tests-add-test-that-journald-keeps-fds-over-terminat.patch

2f7d91
From 39ab4de70c6f2b35ec735195803f4bd1eb5892c1 Mon Sep 17 00:00:00 2001
2f7d91
From: Evgeny Vereshchagin <evvers@ya.ru>
2f7d91
Date: Thu, 20 Oct 2016 13:18:12 +0000
2f7d91
Subject: [PATCH] tests: add test that journald keeps fds over termination by
2f7d91
 signal
2f7d91
2f7d91
This test fails before previous commit, and passes with it.
2f7d91
2f7d91
(cherry picked from commit bff653e3970bb79832568ae86b095ee530b62302)
2f7d91
(cherry picked from commit ee8f69ae5ddac6f05c56ea7dbcb76fbbb2e355ee)
2f7d91
Resolves: #1803802
2f7d91
---
2f7d91
 test/TEST-04-JOURNAL/test-journal.sh | 8 ++++++++
2f7d91
 1 file changed, 8 insertions(+)
2f7d91
2f7d91
diff --git a/test/TEST-04-JOURNAL/test-journal.sh b/test/TEST-04-JOURNAL/test-journal.sh
2f7d91
index 701b0cf724..d0b05c46d6 100755
2f7d91
--- a/test/TEST-04-JOURNAL/test-journal.sh
2f7d91
+++ b/test/TEST-04-JOURNAL/test-journal.sh
2f7d91
@@ -22,5 +22,13 @@ sleep 3
2f7d91
 systemctl stop forever-print-hola
2f7d91
 [[ ! -f "/i-lose-my-logs" ]]
2f7d91
 
2f7d91
+# https://github.com/systemd/systemd/issues/4408
2f7d91
+rm -f /i-lose-my-logs
2f7d91
+systemctl start forever-print-hola
2f7d91
+sleep 3
2f7d91
+systemctl kill --signal=SIGKILL systemd-journald
2f7d91
+sleep 3
2f7d91
+[[ ! -f "/i-lose-my-logs" ]]
2f7d91
+
2f7d91
 touch /testok
2f7d91
 exit 0