17 bad_size(
void **state)
25 realloc_fails(
void **state)
34 pcmk__realloc(ptr, 1000);
41 realloc_succeeds(
void **state)
52 ptr = pcmk__realloc(ptr, 1000);
56 ptr = pcmk__realloc(ptr, 2000);
60 ptr = pcmk__realloc(ptr, 500);
67 cmocka_unit_test(bad_size),
68 cmocka_unit_test(realloc_fails),
69 cmocka_unit_test(realloc_succeeds))
#define pcmk__assert_aborts(stmt)
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
void * __wrap_realloc(void *ptr, size_t size)
#define pcmk__assert_asserts(stmt)