]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: skip test_exec_inaccessiblepaths_proc when inaccessible dir is unavailable...
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 1 Jun 2017 17:58:37 +0000 (20:58 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Jun 2017 17:58:37 +0000 (13:58 -0400)
test_exec_inaccessiblepaths_proc depends on
/run/systemd/inaccessible/dir, which may be unavailable.

See https://github.com/systemd/systemd/issues/5987#issuecomment-305448958.

src/test/test-execute.c

index 2dfa90ed19994cb800deb4df4a259f8b349d910a..29c8fd613f070866c83a00590dde819628b1fa11 100644 (file)
@@ -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);
 }