summaryrefslogtreecommitdiffstats
path: root/test/units/TEST-74-AUX-UTILS.run.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-25 11:31:38 +0200
committerLennart Poettering <lennart@poettering.net>2024-10-25 17:51:04 +0200
commitb58b13f1c691f396acb32e20063c0411c1fe0bf2 (patch)
tree65bb51edef521be31b4b370e192c5386deee7887 /test/units/TEST-74-AUX-UTILS.run.sh
parentrun: reconnect if our dbus connection is terminated (diff)
downloadsystemd-b58b13f1c691f396acb32e20063c0411c1fe0bf2.tar.xz
systemd-b58b13f1c691f396acb32e20063c0411c1fe0bf2.zip
test: add brief testcase for systemd-run disconnect handling
Diffstat (limited to '')
-rwxr-xr-xtest/units/TEST-74-AUX-UTILS.run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/units/TEST-74-AUX-UTILS.run.sh b/test/units/TEST-74-AUX-UTILS.run.sh
index 903ddde70e..83ae352943 100755
--- a/test/units/TEST-74-AUX-UTILS.run.sh
+++ b/test/units/TEST-74-AUX-UTILS.run.sh
@@ -272,3 +272,6 @@ if [[ -e /usr/lib/pam.d/systemd-run0 ]] || [[ -e /etc/pam.d/systemd-run0 ]]; the
assert_neq "$(run0 --pty tty < /dev/null)" "not a tty"
assert_eq "$(run0 --pipe tty < /dev/null)" "not a tty"
fi
+
+# Tests whether intermediate disconnects corrupt us (modified testcase from https://github.com/systemd/systemd/issues/27204)
+assert_rc "37" systemd-run --unit=disconnecttest --wait --pipe --user -M testuser@.host bash -ec 'systemctl --user daemon-reexec; sleep 3; exit 37'