17 function_asserts(
void **state)
33 full_path(
void **state)
38 assert_int_equal(strcmp(
path,
"/dir/file"), 0);
42 assert_int_equal(strcmp(
path,
"/full/path"), 0);
46 assert_int_equal(strcmp(
path,
"/dir/../relative/path"), 0);
51 cmocka_unit_test(function_asserts),
52 cmocka_unit_test(full_path))
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))
#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.
char * __wrap_strdup(const char *s)