15 all_set(
void **state) {
16 assert_false(pcmk_all_flags_set(0x000, 0x003));
17 assert_true(pcmk_all_flags_set(0x00f, 0x003));
18 assert_false(pcmk_all_flags_set(0x00f, 0x010));
19 assert_false(pcmk_all_flags_set(0x00f, 0x011));
20 assert_true(pcmk_all_flags_set(0x000, 0x000));
21 assert_true(pcmk_all_flags_set(0x00f, 0x000));
25 one_is_set(
void **state) {
32 cmocka_unit_test(all_set),
33 cmocka_unit_test(one_is_set))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.