]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add coverage for #26467
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 21 Feb 2023 18:15:13 +0000 (19:15 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 21 Feb 2023 18:39:52 +0000 (19:39 +0100)
test/units/testsuite-26.sh

index 2d438e2748414225e3fc80474125bdefcde084ce..17b979238ebf8f7ef7c5408c37956d658c343d6d 100755 (executable)
@@ -427,5 +427,17 @@ EOF
     systemctl stop issue-24990
 fi
 
+# %J in WantedBy= causes ABRT (#26467)
+cat >/run/systemd/system/test-WantedBy.service <<EOF
+[Service]
+ExecStart=true
+
+[Install]
+WantedBy=user-%i@%J.service
+EOF
+systemctl daemon-reload
+systemctl enable --now test-WantedBy.service || :
+systemctl daemon-reload
+
 touch /testok
 rm /failed