This source file includes following definitions.
- any_set
- main
1
2
3
4
5
6
7
8
9
10 #include <stdio.h>
11 #include <stdbool.h>
12 #include <crm_internal.h>
13
14 static void
15 any_set(void) {
16 g_assert_false(pcmk_any_flags_set(0x000, 0x000));
17 g_assert_false(pcmk_any_flags_set(0x000, 0x001));
18 g_assert_true(pcmk_any_flags_set(0x00f, 0x001));
19 g_assert_false(pcmk_any_flags_set(0x00f, 0x010));
20 g_assert_true(pcmk_any_flags_set(0x00f, 0x011));
21 g_assert_false(pcmk_any_flags_set(0x000, 0x000));
22 g_assert_false(pcmk_any_flags_set(0x00f, 0x000));
23 }
24
25 int
26 main(int argc, char **argv)
27 {
28 g_test_init(&argc, &argv, NULL);
29
30 g_test_add_func("/common/flags/any_set/any_set", any_set);
31 return g_test_run();
32 }