15 set_flags(
void **state) {
16 assert_int_equal(pcmk__set_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
17 "test", 0x0f0, 0x00f, NULL), 0x0ff);
18 assert_int_equal(pcmk__set_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
19 "test", 0x0f0, 0xf0f, NULL), 0xfff);
20 assert_int_equal(pcmk__set_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
21 "test", 0x0f0, 0xfff, NULL), 0xfff);
25 cmocka_unit_test(set_flags))
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))