chiark / gitweb /
tests: skip tests when executed without privileges but which require them
[elogind.git] / src / test / test-sched-prio.c
index 509c75f42df08ddc3372c42225b9ca324fc40adb..1bbe867317fda28378ea5807bc1e1fed4c69b2e3 100644 (file)
@@ -35,7 +35,7 @@ int main(int argc, char *argv[]) {
         /* prepare the test */
         assert_se(set_unit_path(TEST_DIR) >= 0);
         r = manager_new(SYSTEMD_USER, false, &m);
-        if (r == -EPERM) {
+        if (r == -EPERM || r == -EACCES) {
                 puts("manager_new: Permission denied. Skipping test.");
                 return EXIT_TEST_SKIP;
         }