17 update_null(
void **state) {
29 str = strdup(
"hello");
35 update_same(
void **state) {
39 str = strdup(
"hello");
42 assert_ptr_equal(saved, str);
47 update_different(
void **state) {
50 str = strdup(
"hello");
52 assert_string_equal(str,
"world");
57 strdup_fails(
void **state) {
60 str = strdup(
"hello");
75 cmocka_unit_test(update_null),
76 cmocka_unit_test(update_same),
77 cmocka_unit_test(update_different),
78 cmocka_unit_test(strdup_fails))
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))
void pcmk__str_update(char **str, const char *value)
#define pcmk__assert_asserts(stmt)
char * __wrap_strdup(const char *s)