diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2017-06-01 19:58:37 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-06-01 19:58:37 +0200 |
commit | af4af186b8436ce6539c847565eff5563f01f036 (patch) | |
tree | 0c7c0fec224d4ece6d3f2f6bba3a8f775a90f7bd /src/test/test-execute.c | |
parent | hwdb: add multimedia keys for Medion Akoya S3409 (#6062) (diff) | |
download | systemd-af4af186b8436ce6539c847565eff5563f01f036.tar.xz systemd-af4af186b8436ce6539c847565eff5563f01f036.zip |
tests: skip test_exec_inaccessiblepaths_proc when inaccessible dir is unavailable (#6068)
test_exec_inaccessiblepaths_proc depends on
/run/systemd/inaccessible/dir, which may be unavailable.
See https://github.com/systemd/systemd/issues/5987#issuecomment-305448958.
Diffstat (limited to '')
-rw-r--r-- | src/test/test-execute.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c index 2dfa90ed19..29c8fd613f 100644 --- a/src/test/test-execute.c +++ b/src/test/test-execute.c @@ -234,6 +234,11 @@ static void test_exec_inaccessiblepaths(Manager *m) { } static void test_exec_inaccessiblepaths_proc(Manager *m) { + if (!is_inaccessible_available()) { + log_notice("testing without inaccessible, skipping %s", __func__); + return; + } + test(m, "exec-inaccessiblepaths-proc.service", 0, CLD_EXITED); } |