diff options
author | Michal Koutný <mkoutny@suse.com> | 2019-06-06 23:27:20 +0200 |
---|---|---|
committer | Michal Koutný <xm.koutny@gmail.com> | 2019-06-26 23:16:31 +0200 |
commit | 594057fd996ad8401b815ed974f1236c4edc3e08 (patch) | |
tree | 9139017913aa27a88ee71ca06911a9dcdac3fc25 /test | |
parent | 804cdabc31b38b840eec2b64dc8bdd9a8e660a6f (diff) | |
download | systemd-594057fd996ad8401b815ed974f1236c4edc3e08.tar.gz |
tests: Check trivial loop between two jobs
job_compare return value is undefined in case the jobs have a loop
between them, so better make a test to make sure transaction cycle
detection catches it.
Diffstat (limited to 'test')
-rw-r--r-- | test/a-conj.service | 8 | ||||
-rw-r--r-- | test/meson.build | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/a-conj.service b/test/a-conj.service new file mode 100644 index 0000000000..db37ae71d4 --- /dev/null +++ b/test/a-conj.service @@ -0,0 +1,8 @@ +[Unit] +Description=A conjugate +Requires=a.service +After=a.service +Before=a.service + +[Service] +ExecStart=/bin/true diff --git a/test/meson.build b/test/meson.build index a243538081..8c71e72667 100644 --- a/test/meson.build +++ b/test/meson.build @@ -2,6 +2,7 @@ test_data_files = ''' a.service + a-conj.service b.service basic.target c.service |