This source file includes following definitions.
- set_flags
- main
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 static void
13 set_flags(void) {
14 g_assert_cmphex(pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, "Test",
15 "test", 0x0f0, 0x00f, NULL), ==, 0x0ff);
16 g_assert_cmphex(pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, "Test",
17 "test", 0x0f0, 0xf0f, NULL), ==, 0xfff);
18 g_assert_cmphex(pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, "Test",
19 "test", 0x0f0, 0xfff, NULL), ==, 0xfff);
20 }
21
22 int
23 main(int argc, char **argv)
24 {
25 g_test_init(&argc, &argv, NULL);
26
27 g_test_add_func("/common/flags/set/set_flags", set_flags);
28 return g_test_run();
29 }