teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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