diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-08 01:27:33 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-08 20:21:50 +0200 |
commit | 4e20fe27950e14e8a082a74515f347546a9371d0 (patch) | |
tree | 19f7ee8a8f5eb2153539e0655cbeb282837466d3 /test/units/testsuite-23.sh | |
parent | TEST-42-EXECSTOPPOST: un-invert test (diff) | |
download | systemd-4e20fe27950e14e8a082a74515f347546a9371d0.tar.xz systemd-4e20fe27950e14e8a082a74515f347546a9371d0.zip |
TEST-*: make failure tests actually fail on failure
Here the intent was actually correct, and the tests still pass when the check
is made effective.
Diffstat (limited to 'test/units/testsuite-23.sh')
-rwxr-xr-x | test/units/testsuite-23.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-23.sh b/test/units/testsuite-23.sh index 5e2966f848..ebee20a65a 100755 --- a/test/units/testsuite-23.sh +++ b/test/units/testsuite-23.sh @@ -16,8 +16,8 @@ systemd-run --unit=three -p Type=simple /tmp/brokenbinary # And now, do the same with Type=exec, where the latter two should fail systemd-run --unit=four -p Type=exec /bin/sleep infinity -! systemd-run --unit=five -p Type=exec -p User=idontexist /bin/sleep infinity -! systemd-run --unit=six -p Type=exec /tmp/brokenbinary +systemd-run --unit=five -p Type=exec -p User=idontexist /bin/sleep infinity && { echo 'unexpected success'; exit 1; } +systemd-run --unit=six -p Type=exec /tmp/brokenbinary && { echo 'unexpected success'; exit 1; } systemd-run --unit=seven -p KillSignal=SIGTERM -p RestartKillSignal=SIGINT -p Type=exec /bin/sleep infinity # Both TERM and SIGINT happen to have the same number on all architectures |