mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
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.
This commit is contained in:
parent
45e78af419
commit
af4af186b8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user