mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
test: add test for crash when adding a JOB_NOP
This commit is contained in:
parent
d108ddf172
commit
06c1c4f98c
@ -21,6 +21,15 @@ ELAPSED=$(($END_SEC-$START_SEC))
|
||||
systemctl list-jobs > /root/list-jobs.txt
|
||||
grep 'sleep\.service.*running' /root/list-jobs.txt || exit 1
|
||||
grep 'hello\.service' /root/list-jobs.txt && exit 1
|
||||
systemctl stop sleep.service hello-after-sleep.target || exit 1
|
||||
|
||||
# Test for a crash when enqueueing a JOB_NOP when other job already exists
|
||||
systemctl start --no-block hello-after-sleep.target || exit 1
|
||||
# hello.service should still be waiting, so these try-restarts will collapse
|
||||
# into NOPs.
|
||||
systemctl try-restart --fail hello.service || exit 1
|
||||
systemctl try-restart hello.service || exit 1
|
||||
systemctl stop hello.service sleep.service hello-after-sleep.target || exit 1
|
||||
|
||||
# TODO: add more job queueing/merging tests here.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user