16 #define SIMPLE_DATA "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" 21 simple_compress(
void **state)
31 max_too_small(
void **state)
40 calloc_fails(
void **state) {
48 expect_value(
__wrap_calloc, nmemb, (
size_t) ((40 * 1.01) + 601));
57 cmocka_unit_test(simple_compress),
58 cmocka_unit_test(max_too_small),
59 cmocka_unit_test(calloc_fails))
const char * SIMPLE_COMPRESSED
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
External (OS/environmental) problem.
int pcmk__compress(const char *data, unsigned int length, unsigned int max, char **result, unsigned int *result_len)
#define pcmk__assert_exits(rc, stmt)
pcmk__action_result_t result
void * __wrap_calloc(size_t nmemb, size_t size)
#define pcmk__assert_alloc(nmemb, size)