summaryrefslogtreecommitdiffstats
path: root/test/testsuite-03.units
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-03-16 09:23:17 +0100
committerMike Yuan <me@yhndnzj.com>2023-07-05 02:15:35 +0200
commit5db456d06511ed537e5f6870e9d6b1afe50587c8 (patch)
treeb52f2cfe448cad945a67ff55212bb3b0203e03a3 /test/testsuite-03.units
parentcore: introduce UNIT_ATOM_PROPAGATE_STOP_GRACEFUL for PropagatesStopTo= (diff)
downloadsystemd-5db456d06511ed537e5f6870e9d6b1afe50587c8.tar.xz
systemd-5db456d06511ed537e5f6870e9d6b1afe50587c8.zip
test: add test cases for issue #26839 in TEST-03-JOBS
Diffstat (limited to 'test/testsuite-03.units')
-rw-r--r--test/testsuite-03.units/propagatestopto-and-pullin.target5
-rw-r--r--test/testsuite-03.units/propagatestopto-only.target3
-rw-r--r--test/testsuite-03.units/sleep-infinity-simple.service7
3 files changed, 15 insertions, 0 deletions
diff --git a/test/testsuite-03.units/propagatestopto-and-pullin.target b/test/testsuite-03.units/propagatestopto-and-pullin.target
new file mode 100644
index 0000000000..8e409af769
--- /dev/null
+++ b/test/testsuite-03.units/propagatestopto-and-pullin.target
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Requires=sleep-infinity-simple.service
+After=sleep-infinity-simple.service
+PropagatesStopTo=sleep-infinity-simple.service
diff --git a/test/testsuite-03.units/propagatestopto-only.target b/test/testsuite-03.units/propagatestopto-only.target
new file mode 100644
index 0000000000..327b7c19ea
--- /dev/null
+++ b/test/testsuite-03.units/propagatestopto-only.target
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+PropagatesStopTo=sleep-infinity-simple.service
diff --git a/test/testsuite-03.units/sleep-infinity-simple.service b/test/testsuite-03.units/sleep-infinity-simple.service
new file mode 100644
index 0000000000..211346d7c0
--- /dev/null
+++ b/test/testsuite-03.units/sleep-infinity-simple.service
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Unit]
+Description=Sleep infinitely
+
+[Service]
+Type=simple
+ExecStart=/bin/sleep infinity