16 bad_input_string(
void **state)
40 input_too_long_for_both(
void **state)
49 for (
int i = 0; i <
NAME_MAX - 3; i++) {
65 input_too_long_for_pcmk(
void **state)
76 for (
int i = 0; i <
NAME_MAX - 5; i++) {
81 snprintf(buf,
NAME_MAX,
"HA_%s", long_opt);
105 valid_inputs_set(
void **state)
135 valid_inputs_unset(
void **state)
150 disable_compat(
void **state)
176 cmocka_unit_test(bad_input_string),
177 cmocka_unit_test(input_too_long_for_both),
178 cmocka_unit_test(input_too_long_for_pcmk),
179 cmocka_unit_test(valid_inputs_set),
180 cmocka_unit_test(valid_inputs_unset),
181 cmocka_unit_test(disable_compat))
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))
void pcmk__set_env_option(const char *option, const char *value, bool compat)
Set or unset a Pacemaker environment variable option.
int __wrap_setenv(const char *name, const char *value, int overwrite)
int __wrap_unsetenv(const char *name)