#ifndef _di_level_0_parameter_checking_
void test__f_capability_clear_flag__parameter_checking(void **state) {
- const f_capability_flag_value_t flag_value = f_capability_flag_value_t_initialize;
+ const f_capability_flag_t flag = f_capability_flag_t_initialize;
{
- const f_status_t status = f_capability_clear_flag(flag_value, 0);
+ const f_status_t status = f_capability_clear_flag(flag, 0);
assert_int_equal(F_status_set_fine(status), F_parameter);
}
void test__f_capability_clear_flag__works(void **state) {
f_capability_t capability = f_capability_t_initialize;
- const f_capability_flag_value_t flag_value = f_capability_flag_value_t_initialize;
+ const f_capability_flag_t flag = f_capability_flag_t_initialize;
#if defined(_di_libcap_)
printf("[ WARN ] f_capability_clear_flag() is not implemented and cannot be fully tested.\n");
#endif // defined(_di_libcap_)
{
- const f_status_t status = f_capability_clear_flag(flag_value, &capability);
+ const f_status_t status = f_capability_clear_flag(flag, &capability);
#if defined(_di_libcap_)
assert_int_equal(F_status_set_fine(status), F_implemented_not);
#if !defined(_di_libcap_)
f_capability_t capability = f_capability_t_initialize;
- const f_capability_flag_value_t flag_value = f_capability_flag_value_t_initialize;
+ const f_capability_flag_t flag = f_capability_flag_t_initialize;
int errnos[] = {
EINVAL,
will_return(__wrap_cap_clear_flag, true);
will_return(__wrap_cap_clear_flag, errnos[i]);
- const f_status_t status = f_capability_clear_flag(flag_value, &capability);
+ const f_status_t status = f_capability_clear_flag(flag, &capability);
assert_int_equal(F_status_set_fine(status), statuss[i]);
} // for