19 set_flags(
void **state) {
20 assert_int_equal(pcmk__set_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
21 "test", 0x0f0, 0x00f, NULL), 0x0ff);
22 assert_int_equal(pcmk__set_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
23 "test", 0x0f0, 0xf0f, NULL), 0xfff);
24 assert_int_equal(pcmk__set_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
25 "test", 0x0f0, 0xfff, NULL), 0xfff);
29 main(
int argc,
char **argv)
31 const struct CMUnitTest tests[] = {
32 cmocka_unit_test(set_flags),
35 cmocka_set_message_output(CM_OUTPUT_TAP);
36 return cmocka_run_group_tests(tests, NULL, NULL);
int main(int argc, char **argv)