14 g_assert_cmphex(pcmk__clear_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
15 "test", 0x0f0, 0x00f, NULL), ==, 0x0f0);
16 g_assert_cmphex(pcmk__clear_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
17 "test", 0x0f0, 0xf0f, NULL), ==, 0x0f0);
22 g_assert_cmphex(pcmk__clear_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
23 "test", 0x0f0, 0x020, NULL), ==, 0x0d0);
24 g_assert_cmphex(pcmk__clear_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
25 "test", 0x0f0, 0x030, NULL), ==, 0x0c0);
30 g_assert_cmphex(pcmk__clear_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
31 "test", 0x0f0, 0x0f0, NULL), ==, 0x000);
32 g_assert_cmphex(pcmk__clear_flags_as(__func__, __LINE__,
LOG_TRACE,
"Test",
33 "test", 0x0f0, 0xfff, NULL), ==, 0x000);
37 main(
int argc,
char **argv)
39 g_test_init(&argc, &argv, NULL);
41 g_test_add_func(
"/common/flags/clear/clear_none", clear_none);
42 g_test_add_func(
"/common/flags/clear/clear_some", clear_some);
43 g_test_add_func(
"/common/flags/clear/clear_all", clear_all);
int main(int argc, char **argv)