This source file includes following definitions.
- set_flags
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 #include <crm/common/unittest_internal.h>
13
14 static void
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);
22 }
23
24 PCMK__UNIT_TEST(NULL, NULL,
25 cmocka_unit_test(set_flags))