]> git.ipfire.org Git - thirdparty/systemd.git/commit
tests: Check job ordering on execution cycles
authorMichal Koutný <mkoutny@suse.com>
Thu, 6 Jun 2019 21:27:20 +0000 (23:27 +0200)
committerMichal Koutný <xm.koutny@gmail.com>
Wed, 26 Jun 2019 21:16:31 +0000 (23:16 +0200)
commit804cdabc31b38b840eec2b64dc8bdd9a8e660a6f
treece1bbbb84bc92f82b9e9d025f673a3802009c234
parentdfd79eca55e3d4bd61813ca4cf8887544d952c28
tests: Check job ordering on execution cycles

The test-engine Test2 tests the cycle detection when units a, b and d
all start at once

    ,-------------------after-----------------,
    v                                         |
    a/start ---after---> d/start ---after---> b/start

Extend the test with Test11 that adds i.service which causes a and d
stop (by unordered Conflicts=) while starting b. Because stops precede
starts, we effectively eliminate the job cycle and all transaction jobs
should be applicable.

    ,-------------------after-----------------,
    v                                         |
    a/stop <---after--- d/stop <---after--- b/start
    .                   .                     ^
    .                   .                     |
     '. . . . . . . . . i/start ---after------'
src/test/test-engine.c
test/i.service [new file with mode: 0644]
test/meson.build