17 function_asserts(
void **state)
24 function_exits(
void **state)
38 full_path(
void **state)
43 assert_int_equal(strcmp(
path,
"/dir/file"), 0);
47 assert_int_equal(strcmp(
path,
"/full/path"), 0);
51 assert_int_equal(strcmp(
path,
"/dir/../relative/path"), 0);
56 cmocka_unit_test(function_asserts),
57 cmocka_unit_test(function_exits),
58 cmocka_unit_test(full_path))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
External (OS/environmental) problem.
#define pcmk__assert_asserts(stmt)
char * pcmk__full_path(const char *filename, const char *dirname)
Duplicate a file path, inserting a prefix if not absolute.
#define pcmk__assert_exits(rc, stmt)
char * __wrap_strdup(const char *s)