21 no_exe_file(
void **state)
23 size_t len = PATH_MAX;
43 contents_too_long(
void **state)
66 contents_ok(
void **state)
68 size_t len = PATH_MAX;
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))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
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)
#define pcmk__assert_alloc(nmemb, size)