19 same_pointer(
void **state) {
20 const char *s1 =
"abcd";
21 const char *s2 =
"wxyz";
31 one_is_null(
void **state) {
32 const char *s1 =
"abcd";
43 case_matters(
void **state) {
44 const char *s1 =
"abcd";
45 const char *s2 =
"ABCD";
53 case_insensitive(
void **state) {
54 const char *s1 =
"abcd";
55 const char *s2 =
"ABCD";
63 const char *s1 =
"abcd";
64 const char *s2 =
"ABCD";
79 int main(
int argc,
char **argv) {
80 const struct CMUnitTest tests[] = {
81 cmocka_unit_test(same_pointer),
82 cmocka_unit_test(one_is_null),
83 cmocka_unit_test(case_matters),
84 cmocka_unit_test(case_insensitive),
85 cmocka_unit_test(regex),
88 cmocka_set_message_output(CM_OUTPUT_TAP);
89 return cmocka_run_group_tests(tests, NULL, NULL);
int main(int argc, char **argv)
int pcmk__strcmp(const char *s1, const char *s2, uint32_t flags)