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");
76 cmocka_unit_test(update_null),
77 cmocka_unit_test(update_same),
78 cmocka_unit_test(update_different),
79 cmocka_unit_test(strdup_fails))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
External (OS/environmental) problem.
void pcmk__str_update(char **str, const char *value)
#define pcmk__assert_exits(rc, stmt)
char * __wrap_strdup(const char *s)