tests: make manager_skip_test() not a macro and move to tests.h

There is nothing magic in it.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-11-11 14:55:57 +01:00
parent 8b139557fe
commit 5eecb1030f
8 changed files with 22 additions and 19 deletions
+13
View File
@@ -3,6 +3,19 @@
#include <stdbool.h>
#include "macro.h"
static inline bool manager_errno_skip_test(int r) {
return IN_SET(abs(r),
EPERM,
EACCES,
EADDRINUSE,
EHOSTDOWN,
ENOENT,
ENOMEDIUM /* cannot determine cgroup */
);
}
char* setup_fake_runtime_dir(void);
const char* get_testdata_dir(void);
const char* get_catalog_dir(void);