16 disabled_null_value(
void **state)
24 enabled_true_value(
void **state)
41 disabled_false_value(
void **state)
58 enabled_daemon_in_list(
void **state)
68 will_return(
__wrap_getenv,
"pacemaker-execd,pacemaker-fenced");
72 will_return(
__wrap_getenv,
"pacemaker-controld,pacemaker-execd");
77 "pacemaker-controld,pacemaker-execd,pacemaker-fenced");
84 disabled_daemon_not_in_list(
void **state)
90 will_return(
__wrap_getenv,
"pacemaker-controld,pacemaker-fenced");
97 cmocka_unit_test(disabled_null_value),
98 cmocka_unit_test(enabled_true_value),
99 cmocka_unit_test(disabled_false_value),
100 cmocka_unit_test(enabled_daemon_in_list),
101 cmocka_unit_test(disabled_daemon_not_in_list))
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
char * __wrap_getenv(const char *name)
bool pcmk__env_option_enabled(const char *daemon, const char *option)