18 #define SIMPLE_DATA "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" 23 simple_compress(
void **state)
25 char *
result = calloc(1024,
sizeof(
char));
33 max_too_small(
void **state)
35 char *
result = calloc(1024,
sizeof(
char));
42 main(
int argc,
char **argv)
44 const struct CMUnitTest tests[] = {
45 cmocka_unit_test(simple_compress),
46 cmocka_unit_test(max_too_small),
49 cmocka_set_message_output(CM_OUTPUT_TAP);
50 return cmocka_run_group_tests(tests, NULL, NULL);
const char * SIMPLE_COMPRESSED
int pcmk__compress(const char *data, unsigned int length, unsigned int max, char **result, unsigned int *result_len)
pcmk__action_result_t result
int main(int argc, char **argv)