diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-06-15 12:21:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 12:21:53 +0100 |
commit | e4948b0f0ada46db50247f203e5d238cee01f471 (patch) | |
tree | 966aff26b714cdc8b385b3395f1b6646efd005cb /test | |
parent | e19b0746f15e88c5f536b8588aa88d3ffb82fef8 (diff) | |
parent | 2429808b297e6a711a245b93b8bc7df516c9d5bd (diff) | |
download | systemd-e4948b0f0ada46db50247f203e5d238cee01f471.tar.gz |
Merge pull request #19921 from yuwata/service-verify-bus-type
core/service: fix assertion when Type=dbus but BusName= is not specified
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/testsuite-42.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/testsuite-42.sh b/test/units/testsuite-42.sh index e47fab46e6..4e6be7e06e 100755 --- a/test/units/testsuite-42.sh +++ b/test/units/testsuite-42.sh @@ -65,6 +65,10 @@ test -f /run/dbus1 systemd-run --unit=dbus2.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=dbus -p BusName=systemd.test.ExecStopPost -p ExecStopPost='/bin/touch /run/dbus2' true test -f /run/dbus2 +# https://github.com/systemd/systemd/issues/19920 +systemd-run --unit=dbus3.service --wait -p StandardOutput=tty -p StandardError=tty -p Type=dbus -p ExecStopPost='/bin/touch /run/dbus3' true \ + && { echo 'unexpected success'; exit 1; } + cat >/tmp/notify1.sh <<EOF #!/usr/bin/env bash |