21 no_exe_file(
void **state)
23 size_t len = PATH_MAX;
24 char *
path = calloc(len,
sizeof(
char));
43 contents_too_long(
void **state)
46 char *
path = calloc(len,
sizeof(
char));
66 contents_ok(
void **state)
68 size_t len = PATH_MAX;
69 char *
path = calloc(len,
sizeof(
char));
82 assert_string_equal(
path,
"/ok");
90 cmocka_unit_test(no_exe_file),
91 cmocka_unit_test(contents_too_long),
92 cmocka_unit_test(contents_ok))
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
int pcmk__procfs_pid2path(pid_t pid, char path[], size_t path_size)
ssize_t __wrap_readlink(const char *restrict path, char *restrict buf, size_t bufsize)