From adcaadc2c0170b9269191087c9f012e14626e5a5 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 23 May 2022 23:31:37 -0500 Subject: [PATCH] Cleanup: Existing unit tests, adjust status check behavior. I was lazy with the previous behavior and always cleared the error bits when performing the comparison checks. Change the behavior to properly check the status code for when the error bit is expected and when it is not. --- .../f_account/tests/unit/c/test-account-by_id.c | 4 +-- .../f_account/tests/unit/c/test-account-by_name.c | 4 +-- .../tests/unit/c/test-account-group_id_by_name.c | 4 +-- .../tests/unit/c/test-account-group_name_by_id.c | 4 +-- .../tests/unit/c/test-account-id_by_name.c | 4 +-- .../tests/unit/c/test-account-name_by_id.c | 4 +-- .../tests/unit/c/test-capability-ambient_get.c | 2 +- .../tests/unit/c/test-capability-ambient_reset.c | 4 +-- .../tests/unit/c/test-capability-ambient_set.c | 2 +- .../tests/unit/c/test-capability-clear.c | 4 +-- .../tests/unit/c/test-capability-clear_flag.c | 4 +-- .../tests/unit/c/test-capability-compare.c | 2 +- .../tests/unit/c/test-capability-copy.c | 4 +-- .../tests/unit/c/test-capability-copy_external.c | 4 +-- .../tests/unit/c/test-capability-copy_internal.c | 6 ++-- .../tests/unit/c/test-capability-delete.c | 4 +-- .../unit/c/test-capability-file_descriptor_get.c | 4 +-- .../unit/c/test-capability-file_descriptor_set.c | 2 +- .../tests/unit/c/test-capability-file_get.c | 4 +-- .../tests/unit/c/test-capability-file_set.c | 2 +- .../tests/unit/c/test-capability-flag_get.c | 4 +-- .../tests/unit/c/test-capability-flag_set.c | 4 +-- .../tests/unit/c/test-capability-from_name.c | 4 +-- .../tests/unit/c/test-capability-from_text.c | 4 +-- .../tests/unit/c/test-capability-groups_set.c | 2 +- .../tests/unit/c/test-capability-initialize.c | 4 +-- .../tests/unit/c/test-capability-mode_get.c | 2 +- .../tests/unit/c/test-capability-mode_get_name.c | 2 +- .../tests/unit/c/test-capability-mode_set.c | 2 +- .../tests/unit/c/test-capability-owner_get.c | 2 +- .../tests/unit/c/test-capability-owner_set.c | 2 +- .../unit/c/test-capability-process_bound_drop.c | 4 +-- .../unit/c/test-capability-process_bound_get.c | 4 +-- .../tests/unit/c/test-capability-process_get.c | 4 +-- .../unit/c/test-capability-process_get_by_id.c | 4 +-- .../tests/unit/c/test-capability-process_set.c | 2 +- .../unit/c/test-capability-security_bits_get.c | 4 +-- .../unit/c/test-capability-security_bits_set.c | 2 +- .../tests/unit/c/test-capability-size.c | 4 +-- .../tests/unit/c/test-capability-to_name.c | 4 +-- .../tests/unit/c/test-capability-to_text.c | 4 +-- .../tests/unit/c/test-capability-user_set.c | 2 +- .../tests/unit/c/test-color-context_delete.c | 2 +- .../tests/unit/c/test-color-context_destroy.c | 2 +- .../f_color/tests/unit/c/test-color-load_context.c | 2 +- level_0/f_color/tests/unit/c/test-color-save_1.c | 2 +- level_0/f_color/tests/unit/c/test-color-save_2.c | 2 +- level_0/f_color/tests/unit/c/test-color-save_3.c | 2 +- level_0/f_color/tests/unit/c/test-color-save_4.c | 2 +- level_0/f_color/tests/unit/c/test-color-save_5.c | 2 +- .../unit/c/test-console-environment_process.c | 2 +- .../f_console/tests/unit/c/test-console-identify.c | 2 +- .../c/test-console-parameter_prioritize_left.c | 6 ++-- .../c/test-console-parameter_prioritize_right.c | 6 ++-- .../tests/unit/c/test-console-parameter_process.c | 2 +- .../tests/unit/c/test-console-parameters_delete.c | 2 +- .../tests/unit/c/test-console-parameters_destroy.c | 2 +- .../tests/unit/c/test-control_group-copy.c | 2 +- .../unit/c/test-conversion-character_to_binary.c | 2 +- .../unit/c/test-conversion-character_to_decimal.c | 2 +- .../c/test-conversion-character_to_duodecimal.c | 2 +- .../c/test-conversion-character_to_hexidecimal.c | 2 +- .../unit/c/test-conversion-character_to_octal.c | 2 +- .../unit/c/test-conversion-number_signed_print.c | 4 +-- .../c/test-conversion-number_signed_to_string.c | 4 +-- .../unit/c/test-conversion-number_unsigned_print.c | 4 +-- .../c/test-conversion-number_unsigned_to_string.c | 4 +-- .../tests/unit/c/test-directory-create.c | 2 +- .../tests/unit/c/test-directory-create_at.c | 2 +- .../tests/unit/c/test-directory-exists.c | 16 ++++----- .../tests/unit/c/test-directory-exists_at.c | 18 +++++----- .../f_directory/tests/unit/c/test-directory-is.c | 16 ++++----- .../tests/unit/c/test-directory-is_at.c | 18 +++++----- .../f_directory/tests/unit/c/test-directory-list.c | 6 ++-- .../f_directory/tests/unit/c/test-directory-open.c | 4 +-- .../tests/unit/c/test-directory-open_at.c | 4 +-- .../tests/unit/c/test-directory-remove.c | 8 ++--- .../tests/unit/c/test-directory-remove_custom.c | 8 ++--- .../tests/unit/c/test-directory-touch.c | 6 ++-- .../tests/unit/c/test-directory-touch_at.c | 6 ++-- .../tests/unit/c/test-environment-get.c | 2 +- .../tests/unit/c/test-environment-secure_is.c | 4 +-- .../tests/unit/c/test-environment-set.c | 2 +- .../tests/unit/c/test-environment-unset.c | 2 +- level_0/f_file/tests/unit/c/test-file-clone.c | 28 +++++++-------- level_0/f_file/tests/unit/c/test-file-close.c | 4 +-- .../f_file/tests/unit/c/test-file-close_flush.c | 4 +-- level_0/f_file/tests/unit/c/test-file-copy.c | 40 +++++++++++----------- level_0/f_file/tests/unit/c/test-file-create.c | 4 +-- level_0/f_file/tests/unit/c/test-file-create_at.c | 4 +-- .../f_file/tests/unit/c/test-file-create_device.c | 2 +- .../tests/unit/c/test-file-create_device_at.c | 2 +- .../f_file/tests/unit/c/test-file-create_fifo.c | 2 +- .../f_file/tests/unit/c/test-file-create_fifo_at.c | 2 +- .../f_file/tests/unit/c/test-file-create_node.c | 2 +- .../f_file/tests/unit/c/test-file-create_node_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-descriptor.c | 2 +- level_0/f_file/tests/unit/c/test-file-exists.c | 22 ++++++------ level_0/f_file/tests/unit/c/test-file-exists_at.c | 20 +++++------ level_0/f_file/tests/unit/c/test-file-flush.c | 2 +- level_0/f_file/tests/unit/c/test-file-group_read.c | 4 +-- level_0/f_file/tests/unit/c/test-file-is.c | 4 +-- level_0/f_file/tests/unit/c/test-file-is_at.c | 20 +++++------ level_0/f_file/tests/unit/c/test-file-link.c | 2 +- level_0/f_file/tests/unit/c/test-file-link_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-link_hard.c | 2 +- .../f_file/tests/unit/c/test-file-link_hard_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-link_read.c | 4 +-- .../f_file/tests/unit/c/test-file-link_read_at.c | 4 +-- .../f_file/tests/unit/c/test-file-mode_determine.c | 2 +- .../tests/unit/c/test-file-mode_from_string.c | 8 ++--- level_0/f_file/tests/unit/c/test-file-mode_read.c | 4 +-- .../f_file/tests/unit/c/test-file-mode_read_at.c | 4 +-- level_0/f_file/tests/unit/c/test-file-mode_set.c | 2 +- .../f_file/tests/unit/c/test-file-mode_set_at.c | 2 +- .../f_file/tests/unit/c/test-file-mode_to_mode.c | 2 +- level_0/f_file/tests/unit/c/test-file-name_base.c | 2 +- .../f_file/tests/unit/c/test-file-name_directory.c | 2 +- level_0/f_file/tests/unit/c/test-file-open.c | 4 +-- level_0/f_file/tests/unit/c/test-file-open_at.c | 4 +-- level_0/f_file/tests/unit/c/test-file-owner_read.c | 4 +-- level_0/f_file/tests/unit/c/test-file-read.c | 8 ++--- level_0/f_file/tests/unit/c/test-file-read_block.c | 8 ++--- level_0/f_file/tests/unit/c/test-file-read_until.c | 8 ++--- level_0/f_file/tests/unit/c/test-file-remove.c | 2 +- level_0/f_file/tests/unit/c/test-file-remove_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-rename.c | 2 +- level_0/f_file/tests/unit/c/test-file-rename_at.c | 2 +- level_0/f_file/tests/unit/c/test-file-seek.c | 8 ++--- level_0/f_file/tests/unit/c/test-file-size.c | 4 +-- level_0/f_file/tests/unit/c/test-file-size_at.c | 4 +-- level_0/f_file/tests/unit/c/test-file-size_by_id.c | 4 +-- level_0/f_file/tests/unit/c/test-file-stat.c | 4 +-- level_0/f_file/tests/unit/c/test-file-stat_at.c | 4 +-- level_0/f_file/tests/unit/c/test-file-stat_by_id.c | 4 +-- .../f_file/tests/unit/c/test-file-stream_close.c | 2 +- .../f_file/tests/unit/c/test-file-stream_open.c | 6 ++-- .../unit/c/test-file-stream_open_descriptor.c | 6 ++-- .../f_file/tests/unit/c/test-file-stream_read.c | 8 ++--- .../tests/unit/c/test-file-stream_read_block.c | 8 ++--- .../tests/unit/c/test-file-stream_read_until.c | 8 ++--- .../f_file/tests/unit/c/test-file-stream_reopen.c | 6 ++-- .../f_file/tests/unit/c/test-file-stream_write.c | 4 +-- .../tests/unit/c/test-file-stream_write_block.c | 4 +-- .../tests/unit/c/test-file-stream_write_range.c | 4 +-- .../tests/unit/c/test-file-stream_write_until.c | 4 +-- level_0/f_file/tests/unit/c/test-file-touch.c | 4 +-- level_0/f_file/tests/unit/c/test-file-touch_at.c | 4 +-- level_0/f_file/tests/unit/c/test-file-type.c | 4 +-- level_0/f_file/tests/unit/c/test-file-type_at.c | 4 +-- level_0/f_file/tests/unit/c/test-file-umask_get.c | 2 +- level_0/f_file/tests/unit/c/test-file-write.c | 6 ++-- .../f_file/tests/unit/c/test-file-write_block.c | 4 +-- .../f_file/tests/unit/c/test-file-write_range.c | 4 +-- .../f_file/tests/unit/c/test-file-write_until.c | 4 +-- level_0/f_iki/tests/unit/c/test-iki-content_is.c | 2 +- .../tests/unit/c/test-iki-content_partial_is.c | 2 +- level_0/f_iki/tests/unit/c/test-iki-read.c | 8 ++--- level_0/f_limit/tests/unit/c/test-limit-process.c | 2 +- level_0/f_memory/tests/unit/c/test-memory-adjust.c | 4 +-- level_0/f_memory/tests/unit/c/test-memory-delete.c | 2 +- .../f_memory/tests/unit/c/test-memory-destroy.c | 2 +- level_0/f_memory/tests/unit/c/test-memory-new.c | 2 +- .../tests/unit/c/test-memory-new_aligned.c | 2 +- level_0/f_memory/tests/unit/c/test-memory-resize.c | 4 +-- level_0/f_path/tests/unit/c/test-path-current.c | 2 +- .../tests/unit/c/test-path-directory_cleanup.c | 2 +- level_0/f_path/tests/unit/c/test-path-real.c | 2 +- .../tests/unit/c/test-serialize-from_simple.c | 2 +- .../tests/unit/c/test-serialize-from_simple_get.c | 2 +- .../unit/c/test-serialize-from_simple_range.c | 2 +- .../unit/c/test-serialize-from_simple_select.c | 2 +- .../tests/unit/c/test-serialize-to_simple.c | 2 +- .../tests/unit/c/test-status_string-to.c | 2 +- 174 files changed, 383 insertions(+), 383 deletions(-) diff --git a/level_0/f_account/tests/unit/c/test-account-by_id.c b/level_0/f_account/tests/unit/c/test-account-by_id.c index c4d7395..384ef82 100644 --- a/level_0/f_account/tests/unit/c/test-account-by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-by_id.c @@ -39,7 +39,7 @@ void test__f_account_by_id__fails(void **state) { const f_status_t status = f_account_by_id(uid, &account); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for macro_f_account_t_delete_simple(account); @@ -72,7 +72,7 @@ void test__f_account_by_id__not_found(void **state) { { const f_status_t status = f_account_by_id(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_account/tests/unit/c/test-account-by_name.c b/level_0/f_account/tests/unit/c/test-account-by_name.c index 6fa4032..fb59b4d 100644 --- a/level_0/f_account/tests/unit/c/test-account-by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-by_name.c @@ -43,7 +43,7 @@ void test__f_account_by_name__fails(void **state) { const f_status_t status = f_account_by_name(name, &account); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for macro_f_account_t_delete_simple(account); @@ -82,7 +82,7 @@ void test__f_account_by_name__not_found(void **state) { { const f_status_t status = f_account_by_name(name, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c b/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c index 0e91d95..abe7e5f 100644 --- a/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-group_id_by_name.c @@ -43,7 +43,7 @@ void test__f_account_group_id_by_name__fails(void **state) { const f_status_t status = f_account_group_id_by_name(name, &gid); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -78,7 +78,7 @@ void test__f_account_group_id_by_name__not_found(void **state) { { const f_status_t status = f_account_group_id_by_name(name, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c b/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c index f5dccf2..72b31ba 100644 --- a/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-group_name_by_id.c @@ -39,7 +39,7 @@ void test__f_account_group_name_by_id__fails(void **state) { const f_status_t status = f_account_group_name_by_id(gid, &name); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &name); @@ -72,7 +72,7 @@ void test__f_account_group_name_by_id__not_found(void **state) { { const f_status_t status = f_account_group_name_by_id(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_account/tests/unit/c/test-account-id_by_name.c b/level_0/f_account/tests/unit/c/test-account-id_by_name.c index cb4998c..ebac5ea 100644 --- a/level_0/f_account/tests/unit/c/test-account-id_by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-id_by_name.c @@ -43,7 +43,7 @@ void test__f_account_id_by_name__fails(void **state) { const f_status_t status = f_account_id_by_name(name, &uid); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -78,7 +78,7 @@ void test__f_account_id_by_name__not_found(void **state) { { const f_status_t status = f_account_id_by_name(name, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_account/tests/unit/c/test-account-name_by_id.c b/level_0/f_account/tests/unit/c/test-account-name_by_id.c index d688912..1658917 100644 --- a/level_0/f_account/tests/unit/c/test-account-name_by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-name_by_id.c @@ -39,7 +39,7 @@ void test__f_account_name_by_id__fails(void **state) { const f_status_t status = f_account_name_by_id(uid, &name); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &name); @@ -72,7 +72,7 @@ void test__f_account_name_by_id__not_found(void **state) { { const f_status_t status = f_account_name_by_id(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c b/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c index 42a9baa..1642165 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-ambient_get.c @@ -30,7 +30,7 @@ void test__f_capability_ambient_get__fails(void **state) { { const f_status_t status = f_capability_ambient_get(value, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c b/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c index 3459bb9..3a0d5c7 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c +++ b/level_0/f_capability/tests/unit/c/test-capability-ambient_reset.c @@ -14,7 +14,7 @@ void test__f_capability_ambient_reset__fails(void **state) { const f_status_t status = f_capability_ambient_reset(); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } int errnos[] = { @@ -36,7 +36,7 @@ void test__f_capability_ambient_reset__fails(void **state) { const f_status_t status = f_capability_ambient_reset(); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c b/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c index 584592a..549840a 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-ambient_set.c @@ -30,7 +30,7 @@ void test__f_capability_ambient_set__fails(void **state) { const f_status_t status = f_capability_ambient_set(value, flag_value); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-clear.c b/level_0/f_capability/tests/unit/c/test-capability-clear.c index 8d481db..7a42e82 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-clear.c +++ b/level_0/f_capability/tests/unit/c/test-capability-clear.c @@ -31,7 +31,7 @@ void test__f_capability_clear__fails(void **state) { const f_status_t status = f_capability_clear(&capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -42,7 +42,7 @@ void test__f_capability_clear__fails(void **state) { { const f_status_t status = f_capability_clear(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c b/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c index e8dd3b1..8eba172 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c +++ b/level_0/f_capability/tests/unit/c/test-capability-clear_flag.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_capability_clear_flag(flag, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ @@ -63,7 +63,7 @@ void test__f_capability_clear_flag__fails(void **state) { const f_status_t status = f_capability_clear_flag(flag, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-compare.c b/level_0/f_capability/tests/unit/c/test-capability-compare.c index 15833b9..c935aab 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-compare.c +++ b/level_0/f_capability/tests/unit/c/test-capability-compare.c @@ -29,7 +29,7 @@ void test__f_capability_compare__fails(void **state) { const f_status_t status = f_capability_compare(capability_1, capability_2, &flags); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-copy.c b/level_0/f_capability/tests/unit/c/test-capability-copy.c index cd0ff40..74d3433 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-copy.c +++ b/level_0/f_capability/tests/unit/c/test-capability-copy.c @@ -18,7 +18,7 @@ void test__f_capability_copy__fails(void **state) { const f_status_t status = f_capability_copy(capability_1, &capability_2); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } // for #endif // !defined(_di_libcap_) } @@ -31,7 +31,7 @@ void test__f_capability_copy__fails(void **state) { { const f_status_t status = f_capability_copy(capability, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-copy_external.c b/level_0/f_capability/tests/unit/c/test-capability-copy_external.c index 418ed4a..4241bd1 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-copy_external.c +++ b/level_0/f_capability/tests/unit/c/test-capability-copy_external.c @@ -33,7 +33,7 @@ void test__f_capability_copy_external__fails(void **state) { const f_status_t status = f_capability_copy_external(capability, max, external, &size); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -46,7 +46,7 @@ void test__f_capability_copy_external__fails(void **state) { { const f_status_t status = f_capability_copy_external(capability, 0, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c b/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c index ccd3794..bc07f4f 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c +++ b/level_0/f_capability/tests/unit/c/test-capability-copy_internal.c @@ -31,7 +31,7 @@ void test__f_capability_copy_internal__fails(void **state) { const f_status_t status = f_capability_copy_internal(external, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -46,13 +46,13 @@ void test__f_capability_copy_internal__fails(void **state) { { const f_status_t status = f_capability_copy_internal(0, &capability); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { const f_status_t status = f_capability_copy_internal(external, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-delete.c b/level_0/f_capability/tests/unit/c/test-capability-delete.c index 3eadd39..5be93ec 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-delete.c +++ b/level_0/f_capability/tests/unit/c/test-capability-delete.c @@ -29,7 +29,7 @@ void test__f_capability_delete__fails(void **state) { const f_status_t status = f_capability_delete(&capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -40,7 +40,7 @@ void test__f_capability_delete__fails(void **state) { { const f_status_t status = f_capability_delete(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c index 461d476..11c3e96 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c @@ -42,7 +42,7 @@ void test__f_capability_file_descriptor_get__fails(void **state) { const f_status_t status = f_capability_file_descriptor_get(descriptor, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -55,7 +55,7 @@ void test__f_capability_file_descriptor_get__fails(void **state) { { const f_status_t status = f_capability_file_descriptor_get(descriptor, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c index f8462ae..ef2a75b 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c @@ -42,7 +42,7 @@ void test__f_capability_file_descriptor_set__fails(void **state) { const f_status_t status = f_capability_file_descriptor_set(descriptor, capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_get.c b/level_0/f_capability/tests/unit/c/test-capability-file_get.c index 2c72f78..0af59dc 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_get.c @@ -42,7 +42,7 @@ void test__f_capability_file_get__fails(void **state) { const f_status_t status = f_capability_file_get(path, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -55,7 +55,7 @@ void test__f_capability_file_get__fails(void **state) { { const f_status_t status = f_capability_file_get(path, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-file_set.c b/level_0/f_capability/tests/unit/c/test-capability-file_set.c index a1bb9dc..781e273 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-file_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-file_set.c @@ -42,7 +42,7 @@ void test__f_capability_file_set__fails(void **state) { const f_status_t status = f_capability_file_set(path, capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-flag_get.c b/level_0/f_capability/tests/unit/c/test-capability-flag_get.c index 8de3529..9815643 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-flag_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-flag_get.c @@ -30,7 +30,7 @@ void test__f_capability_flag_get__fails(void **state) { const f_status_t status = f_capability_flag_get(capability, capability_value, flag, &value); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -45,7 +45,7 @@ void test__f_capability_flag_get__fails(void **state) { { const f_status_t status = f_capability_flag_get(capability, capability_value, flag, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-flag_set.c b/level_0/f_capability/tests/unit/c/test-capability-flag_set.c index afc0c70..fc5c50c 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-flag_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-flag_set.c @@ -30,7 +30,7 @@ void test__f_capability_flag_set__fails(void **state) { const f_status_t status = f_capability_flag_set(flag, value, codes, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -45,7 +45,7 @@ void test__f_capability_flag_set__fails(void **state) { { const f_status_t status = f_capability_flag_set(flag, value, codes, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-from_name.c b/level_0/f_capability/tests/unit/c/test-capability-from_name.c index c0e7eb8..2cf9a6d 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-from_name.c +++ b/level_0/f_capability/tests/unit/c/test-capability-from_name.c @@ -30,7 +30,7 @@ void test__f_capability_from_name__fails(void **state) { const f_status_t status = f_capability_from_name(name, &capability_value); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -43,7 +43,7 @@ void test__f_capability_from_name__fails(void **state) { { const f_status_t status = f_capability_from_name(name, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-from_text.c b/level_0/f_capability/tests/unit/c/test-capability-from_text.c index e9b48c6..7e92a9d 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-from_text.c +++ b/level_0/f_capability/tests/unit/c/test-capability-from_text.c @@ -30,7 +30,7 @@ void test__f_capability_from_text__fails(void **state) { const f_status_t status = f_capability_from_text(text, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -43,7 +43,7 @@ void test__f_capability_from_text__fails(void **state) { { const f_status_t status = f_capability_from_text(text, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-groups_set.c b/level_0/f_capability/tests/unit/c/test-capability-groups_set.c index 669b8b9..0afc987 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-groups_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-groups_set.c @@ -33,7 +33,7 @@ void test__f_capability_groups_set__fails(void **state) { const f_status_t status = f_capability_groups_set(group, total, groups); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-initialize.c b/level_0/f_capability/tests/unit/c/test-capability-initialize.c index b445852..004227b 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-initialize.c +++ b/level_0/f_capability/tests/unit/c/test-capability-initialize.c @@ -29,7 +29,7 @@ void test__f_capability_initialize__fails(void **state) { const f_status_t status = f_capability_initialize(&capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -40,7 +40,7 @@ void test__f_capability_initialize__fails(void **state) { { const f_status_t status = f_capability_initialize(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-mode_get.c b/level_0/f_capability/tests/unit/c/test-capability-mode_get.c index 78dcc8d..9f704ee 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-mode_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-mode_get.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_capability_mode_get(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c b/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c index 3e6f8f6..88c216a 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c +++ b/level_0/f_capability/tests/unit/c/test-capability-mode_get_name.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_capability_mode_get_name(mode, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-mode_set.c b/level_0/f_capability/tests/unit/c/test-capability-mode_set.c index f1e0588..1e644c4 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-mode_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-mode_set.c @@ -31,7 +31,7 @@ void test__f_capability_mode_set__fails(void **state) { const f_status_t status = f_capability_mode_set(mode); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-owner_get.c b/level_0/f_capability/tests/unit/c/test-capability-owner_get.c index be036d2..f03f545 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-owner_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-owner_get.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_capability_owner_get(capability, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-owner_set.c b/level_0/f_capability/tests/unit/c/test-capability-owner_set.c index 75f85a9..74334f2 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-owner_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-owner_set.c @@ -42,7 +42,7 @@ void test__f_capability_owner_set__fails(void **state) { const f_status_t status = f_capability_owner_set(capability, id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c b/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c index c3fa114..f487425 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_bound_drop.c @@ -32,7 +32,7 @@ void test__f_capability_process_bound_drop__fails(void **state) { const f_status_t status = f_capability_process_bound_drop(value, &bound); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -45,7 +45,7 @@ void test__f_capability_process_bound_drop__fails(void **state) { { const f_status_t status = f_capability_process_bound_drop(value, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c b/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c index 32c85d3..7810c8c 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_bound_get.c @@ -26,7 +26,7 @@ void test__f_capability_process_bound_get__fails(void **state) { const f_status_t status = f_capability_process_bound_get(value, &bound); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -39,7 +39,7 @@ void test__f_capability_process_bound_get__fails(void **state) { { const f_status_t status = f_capability_process_bound_get(value, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_get.c b/level_0/f_capability/tests/unit/c/test-capability-process_get.c index 8d34dfc..baf37bf 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_get.c @@ -29,7 +29,7 @@ void test__f_capability_process_get__fails(void **state) { const f_status_t status = f_capability_process_get(&capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -40,7 +40,7 @@ void test__f_capability_process_get__fails(void **state) { { const f_status_t status = f_capability_process_get(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c b/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c index 723b998..bb22ad0 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_get_by_id.c @@ -26,7 +26,7 @@ void test__f_capability_process_get_by_id__fails(void **state) { const f_status_t status = f_capability_process_get_by_id(pid, &capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -37,7 +37,7 @@ void test__f_capability_process_get_by_id__fails(void **state) { { const f_status_t status = f_capability_process_get_by_id(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-process_set.c b/level_0/f_capability/tests/unit/c/test-capability-process_set.c index a16bd13..5b067ed 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-process_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-process_set.c @@ -31,7 +31,7 @@ void test__f_capability_process_set__fails(void **state) { const f_status_t status = f_capability_process_set(capability); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c b/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c index fc13d0b..ceed172 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c +++ b/level_0/f_capability/tests/unit/c/test-capability-security_bits_get.c @@ -31,7 +31,7 @@ void test__f_capability_security_bits_get__fails(void **state) { const f_status_t status = f_capability_security_bits_get(&bits); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } @@ -42,7 +42,7 @@ void test__f_capability_security_bits_get__fails(void **state) { { const f_status_t status = f_capability_security_bits_get(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c b/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c index 3e93ecf..e043699 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c @@ -41,7 +41,7 @@ void test__f_capability_security_bits_set__fails(void **state) { const f_status_t status = f_capability_security_bits_set(bits); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_capability/tests/unit/c/test-capability-size.c b/level_0/f_capability/tests/unit/c/test-capability-size.c index 0547599..c7c2d6c 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-size.c +++ b/level_0/f_capability/tests/unit/c/test-capability-size.c @@ -32,7 +32,7 @@ void test__f_capability_size__fails(void **state) { const f_status_t status = f_capability_size(capability, &size); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) } @@ -45,7 +45,7 @@ void test__f_capability_size__fails(void **state) { { const f_status_t status = f_capability_size(capability, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-to_name.c b/level_0/f_capability/tests/unit/c/test-capability-to_name.c index 556cd99..581a300 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-to_name.c +++ b/level_0/f_capability/tests/unit/c/test-capability-to_name.c @@ -30,7 +30,7 @@ void test__f_capability_to_name__fails(void **state) { const f_status_t status = f_capability_to_name(code, &name); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); assert_int_equal(name.used, 0); } // for #endif // !defined(_di_libcap_) @@ -44,7 +44,7 @@ void test__f_capability_to_name__fails(void **state) { { const f_status_t status = f_capability_to_name(code, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-to_text.c b/level_0/f_capability/tests/unit/c/test-capability-to_text.c index 49e376a..0d0416e 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-to_text.c +++ b/level_0/f_capability/tests/unit/c/test-capability-to_text.c @@ -30,7 +30,7 @@ void test__f_capability_to_text__fails(void **state) { const f_status_t status = f_capability_to_text(capability, &text); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); assert_int_equal(text.used, 0); } // for #endif // !defined(_di_libcap_) @@ -44,7 +44,7 @@ void test__f_capability_to_text__fails(void **state) { { const f_status_t status = f_capability_to_text(capability, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_capability/tests/unit/c/test-capability-user_set.c b/level_0/f_capability/tests/unit/c/test-capability-user_set.c index 81aae3d..038eba3 100644 --- a/level_0/f_capability/tests/unit/c/test-capability-user_set.c +++ b/level_0/f_capability/tests/unit/c/test-capability-user_set.c @@ -52,7 +52,7 @@ void test__f_capability_user_set__fails(void **state) { const f_status_t status = f_capability_user_set(uid); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_) } diff --git a/level_0/f_color/tests/unit/c/test-color-context_delete.c b/level_0/f_color/tests/unit/c/test-color-context_delete.c index e9ef3bb..fdc069b 100644 --- a/level_0/f_color/tests/unit/c/test-color-context_delete.c +++ b/level_0/f_color/tests/unit/c/test-color-context_delete.c @@ -114,7 +114,7 @@ void test__f_color_context_delete__frees_memory(void **state) { { const f_status_t status = f_color_context_delete(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-context_destroy.c b/level_0/f_color/tests/unit/c/test-color-context_destroy.c index ab0572d..e5ff812 100644 --- a/level_0/f_color/tests/unit/c/test-color-context_destroy.c +++ b/level_0/f_color/tests/unit/c/test-color-context_destroy.c @@ -114,7 +114,7 @@ void test__f_color_context_destroy__frees_memory(void **state) { { const f_status_t status = f_color_context_destroy(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-load_context.c b/level_0/f_color/tests/unit/c/test-color-load_context.c index 5981117..79b9e65 100644 --- a/level_0/f_color/tests/unit/c/test-color-load_context.c +++ b/level_0/f_color/tests/unit/c/test-color-load_context.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_color_load_context(F_true, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-save_1.c b/level_0/f_color/tests/unit/c/test-color-save_1.c index d2750e9..e9db186 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_1.c +++ b/level_0/f_color/tests/unit/c/test-color-save_1.c @@ -14,7 +14,7 @@ extern "C" { { const f_status_t status = f_color_save_1(format, color, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-save_2.c b/level_0/f_color/tests/unit/c/test-color-save_2.c index 68eb512..ffb476f 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_2.c +++ b/level_0/f_color/tests/unit/c/test-color-save_2.c @@ -14,7 +14,7 @@ extern "C" { { const f_status_t status = f_color_save_2(format, color, color, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-save_3.c b/level_0/f_color/tests/unit/c/test-color-save_3.c index db7b0ab..fe6996d 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_3.c +++ b/level_0/f_color/tests/unit/c/test-color-save_3.c @@ -14,7 +14,7 @@ extern "C" { { const f_status_t status = f_color_save_3(format, color, color, color, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-save_4.c b/level_0/f_color/tests/unit/c/test-color-save_4.c index 2db5d12..98fd1bd 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_4.c +++ b/level_0/f_color/tests/unit/c/test-color-save_4.c @@ -14,7 +14,7 @@ extern "C" { { const f_status_t status = f_color_save_4(format, color, color, color, color, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_color/tests/unit/c/test-color-save_5.c b/level_0/f_color/tests/unit/c/test-color-save_5.c index 3e983da..e3bf534 100644 --- a/level_0/f_color/tests/unit/c/test-color-save_5.c +++ b/level_0/f_color/tests/unit/c/test-color-save_5.c @@ -14,7 +14,7 @@ extern "C" { { const f_status_t status = f_color_save_5(format, color, color, color, color, color, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_console/tests/unit/c/test-console-environment_process.c b/level_0/f_console/tests/unit/c/test-console-environment_process.c index 6931ecb..0ad0ce8 100644 --- a/level_0/f_console/tests/unit/c/test-console-environment_process.c +++ b/level_0/f_console/tests/unit/c/test-console-environment_process.c @@ -35,7 +35,7 @@ void test__f_console_environment_process__data_not(void **state) { { const f_status_t status = f_console_environment_process(arguments, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_console/tests/unit/c/test-console-identify.c b/level_0/f_console/tests/unit/c/test-console-identify.c index 0109ece..03515fa 100644 --- a/level_0/f_console/tests/unit/c/test-console-identify.c +++ b/level_0/f_console/tests/unit/c/test-console-identify.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_console_identify(input, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c index bc1d30f..fe09272 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c +++ b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_left.c @@ -23,7 +23,7 @@ void test__f_console_parameter_prioritize_left__fails(void **state) { const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, &decision); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_console_parameters_delete(¶meters); @@ -38,7 +38,7 @@ void test__f_console_parameter_prioritize_left__fails(void **state) { { const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -47,7 +47,7 @@ void test__f_console_parameter_prioritize_left__fails(void **state) { const f_status_t status = f_console_parameter_prioritize_left(parameters, choices, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_console_parameters_delete(¶meters); diff --git a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c index 3e38a64..97917d9 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c +++ b/level_0/f_console/tests/unit/c/test-console-parameter_prioritize_right.c @@ -23,7 +23,7 @@ void test__f_console_parameter_prioritize_right__fails(void **state) { const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, &decision); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_console_parameters_delete(¶meters); @@ -38,7 +38,7 @@ void test__f_console_parameter_prioritize_right__fails(void **state) { { const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -47,7 +47,7 @@ void test__f_console_parameter_prioritize_right__fails(void **state) { const f_status_t status = f_console_parameter_prioritize_right(parameters, choices, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_console_parameters_delete(¶meters); diff --git a/level_0/f_console/tests/unit/c/test-console-parameter_process.c b/level_0/f_console/tests/unit/c/test-console-parameter_process.c index e5261c2..641f23f 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameter_process.c +++ b/level_0/f_console/tests/unit/c/test-console-parameter_process.c @@ -378,7 +378,7 @@ void test__f_console_parameter_process__only_remaining(void **state) { { const f_status_t status = f_console_parameter_process(arguments, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_console/tests/unit/c/test-console-parameters_delete.c b/level_0/f_console/tests/unit/c/test-console-parameters_delete.c index 68de174..9129cb0 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameters_delete.c +++ b/level_0/f_console/tests/unit/c/test-console-parameters_delete.c @@ -56,7 +56,7 @@ void test__f_console_parameters_delete__frees_memory(void **state) { { const f_status_t status = f_console_parameters_delete(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c b/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c index 33c8070..8254018 100644 --- a/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c +++ b/level_0/f_console/tests/unit/c/test-console-parameters_destroy.c @@ -56,7 +56,7 @@ void test__f_console_parameters_destroy__frees_memory(void **state) { { const f_status_t status = f_console_parameters_destroy(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_control_group/tests/unit/c/test-control_group-copy.c b/level_0/f_control_group/tests/unit/c/test-control_group-copy.c index dea4294..6be257a 100644 --- a/level_0/f_control_group/tests/unit/c/test-control_group-copy.c +++ b/level_0/f_control_group/tests/unit/c/test-control_group-copy.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_control_group_copy(source, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_binary.c b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_binary.c index de97bed..7fe6b7a 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_binary.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_binary.c @@ -34,7 +34,7 @@ void test__f_conversion_character_to_binary__fails(void **state) { { const f_status_t status = f_conversion_character_to_binary(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_decimal.c b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_decimal.c index 74b679a..6c9ee0f 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_decimal.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_decimal.c @@ -42,7 +42,7 @@ void test__f_conversion_character_to_decimal__fails(void **state) { { const f_status_t status = f_conversion_character_to_decimal(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_duodecimal.c b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_duodecimal.c index 47d3727..e78a5ef 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_duodecimal.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_duodecimal.c @@ -46,7 +46,7 @@ void test__f_conversion_character_to_duodecimal__fails(void **state) { { const f_status_t status = f_conversion_character_to_duodecimal(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_hexidecimal.c b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_hexidecimal.c index ff3d4e3..4e7f7d8 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_hexidecimal.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_hexidecimal.c @@ -54,7 +54,7 @@ void test__f_conversion_character_to_hexidecimal__fails(void **state) { { const f_status_t status = f_conversion_character_to_hexidecimal(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_octal.c b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_octal.c index 490ccd3..6c9fcb4 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-character_to_octal.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-character_to_octal.c @@ -40,7 +40,7 @@ void test__f_conversion_character_to_octal__fails(void **state) { { const f_status_t status = f_conversion_character_to_octal(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c index a7530e5..e3258a8 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_print.c @@ -55,7 +55,7 @@ void test__f_conversion_number_signed_print__fails_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_print(0, data, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -64,7 +64,7 @@ void test__f_conversion_number_signed_print__fails_for_zero(void **state) { const f_status_t status = f_conversion_number_signed_print(0, data, file); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c index b9d7563..5ebdd0c 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c @@ -13,7 +13,7 @@ extern "C" { const f_status_t status = f_conversion_number_signed_to_string(0, data, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -22,7 +22,7 @@ extern "C" { const f_status_t status = f_conversion_number_signed_to_string(0, data, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c index e662223..6d3208c 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_print.c @@ -55,7 +55,7 @@ void test__f_conversion_number_unsigned_print__fails_for_zero(void **state) { const f_status_t status = f_conversion_number_unsigned_print(0, data, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -64,7 +64,7 @@ void test__f_conversion_number_unsigned_print__fails_for_zero(void **state) { const f_status_t status = f_conversion_number_unsigned_print(0, data, file); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c index bac49a6..338a420 100644 --- a/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c +++ b/level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c @@ -13,7 +13,7 @@ extern "C" { const f_status_t status = f_conversion_number_unsigned_to_string(0, data, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -22,7 +22,7 @@ extern "C" { const f_status_t status = f_conversion_number_unsigned_to_string(0, data, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_directory/tests/unit/c/test-directory-create.c b/level_0/f_directory/tests/unit/c/test-directory-create.c index 4878ee1..668fb8e 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-create.c +++ b/level_0/f_directory/tests/unit/c/test-directory-create.c @@ -52,7 +52,7 @@ void test__f_directory_create__fails(void **state) { const f_status_t status = f_directory_create(path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_directory/tests/unit/c/test-directory-create_at.c b/level_0/f_directory/tests/unit/c/test-directory-create_at.c index 1ec4fd6..47ffce9 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-create_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-create_at.c @@ -54,7 +54,7 @@ void test__f_directory_create_at__fails(void **state) { const f_status_t status = f_directory_create_at(0, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_directory/tests/unit/c/test-directory-exists.c b/level_0/f_directory/tests/unit/c/test-directory-exists.c index 0feb2cb..a7a91c6 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-exists.c +++ b/level_0/f_directory/tests/unit/c/test-directory-exists.c @@ -22,15 +22,15 @@ void test__f_directory_exists__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_buffer, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_buffer), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_file_found_not, - F_memory_not, + F_status_set_error(F_memory_not), F_false, - F_number_overflow, - F_file_stat, + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; for (int i = 0; i < 9; ++i) { @@ -40,7 +40,7 @@ void test__f_directory_exists__fails(void **state) { const f_status_t status = f_directory_exists(path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } diff --git a/level_0/f_directory/tests/unit/c/test-directory-exists_at.c b/level_0/f_directory/tests/unit/c/test-directory-exists_at.c index 84d611a..300a89f 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-exists_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-exists_at.c @@ -23,16 +23,16 @@ void test__f_directory_exists_at__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_directory_descriptor, - F_buffer, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_directory_descriptor), + F_status_set_error(F_buffer), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_file_found_not, - F_memory_not, + F_status_set_error(F_memory_not), F_false, - F_number_overflow, - F_file_stat, + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; for (int i = 0; i < 10; ++i) { @@ -42,7 +42,7 @@ void test__f_directory_exists_at__fails(void **state) { const f_status_t status = f_directory_exists_at(0, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } diff --git a/level_0/f_directory/tests/unit/c/test-directory-is.c b/level_0/f_directory/tests/unit/c/test-directory-is.c index a93d7a3..52ce4dc 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-is.c +++ b/level_0/f_directory/tests/unit/c/test-directory-is.c @@ -22,15 +22,15 @@ void test__f_directory_is__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_buffer, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_buffer), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_file_found_not, - F_memory_not, + F_status_set_error(F_memory_not), F_false, - F_number_overflow, - F_file_stat, + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; for (int i = 0; i < 9; ++i) { @@ -40,7 +40,7 @@ void test__f_directory_is__fails(void **state) { const f_status_t status = f_directory_is(path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } diff --git a/level_0/f_directory/tests/unit/c/test-directory-is_at.c b/level_0/f_directory/tests/unit/c/test-directory-is_at.c index afc6531..e5c6acf 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-is_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-is_at.c @@ -23,16 +23,16 @@ void test__f_directory_is_at__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_directory_descriptor, - F_buffer, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_directory_descriptor), + F_status_set_error(F_buffer), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_file_found_not, - F_memory_not, + F_status_set_error(F_memory_not), F_false, - F_number_overflow, - F_file_stat, + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; for (int i = 0; i < 10; ++i) { @@ -42,7 +42,7 @@ void test__f_directory_is_at__fails(void **state) { const f_status_t status = f_directory_is_at(0, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } diff --git a/level_0/f_directory/tests/unit/c/test-directory-list.c b/level_0/f_directory/tests/unit/c/test-directory-list.c index 64a1639..a8b7c4d 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-list.c +++ b/level_0/f_directory/tests/unit/c/test-directory-list.c @@ -29,8 +29,8 @@ void test__f_directory_list__fails(void **state) { const f_status_t status = f_directory_list(path, 0, 0, &names); - assert_int_equal(F_status_set_fine(status), statuss[i]); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -45,7 +45,7 @@ void test__f_directory_list__fails(void **state) { { const f_status_t status = f_directory_list(path, 0, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_directory/tests/unit/c/test-directory-open.c b/level_0/f_directory/tests/unit/c/test-directory-open.c index 4aee77c..0fb1c0f 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-open.c +++ b/level_0/f_directory/tests/unit/c/test-directory-open.c @@ -56,7 +56,7 @@ void test__f_directory_open__fails(void **state) { const f_status_t status = f_directory_open(path, F_false, &id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -68,7 +68,7 @@ void test__f_directory_open__fails(void **state) { { const f_status_t status = f_directory_open(path, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_directory/tests/unit/c/test-directory-open_at.c b/level_0/f_directory/tests/unit/c/test-directory-open_at.c index 601c5c6..bffb3b6 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-open_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-open_at.c @@ -59,7 +59,7 @@ void test__f_directory_open_at__fails(void **state) { const f_status_t status = f_directory_open_at(at, path, F_false, &id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -71,7 +71,7 @@ void test__f_directory_open_at__fails(void **state) { { const f_status_t status = f_directory_open_at(0, path, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_directory/tests/unit/c/test-directory-remove.c b/level_0/f_directory/tests/unit/c/test-directory-remove.c index 1860364..d6511ed 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-remove.c +++ b/level_0/f_directory/tests/unit/c/test-directory-remove.c @@ -57,7 +57,7 @@ void test__f_directory_remove__fails(void **state) { const f_status_t status = f_directory_remove(path, 0, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -71,7 +71,7 @@ void test__f_directory_remove__fails(void **state) { const f_status_t status = f_directory_remove(path, 1, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -83,7 +83,7 @@ void test__f_directory_remove__fails(void **state) { const f_status_t status = f_directory_remove(path, 1, F_true); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } @@ -96,7 +96,7 @@ void test__f_directory_remove__fails(void **state) { { const f_status_t status = f_directory_remove(path, -1, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c b/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c index e9b41f5..fd52c3e 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c +++ b/level_0/f_directory/tests/unit/c/test-directory-remove_custom.c @@ -57,7 +57,7 @@ void test__f_directory_remove_custom__fails(void **state) { const f_status_t status = f_directory_remove_custom(path, 0, F_false, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -71,7 +71,7 @@ void test__f_directory_remove_custom__fails(void **state) { const f_status_t status = f_directory_remove_custom(path, 1, F_false, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -83,7 +83,7 @@ void test__f_directory_remove_custom__fails(void **state) { const f_status_t status = f_directory_remove_custom(path, 1, F_true, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } @@ -96,7 +96,7 @@ void test__f_directory_remove_custom__fails(void **state) { { const f_status_t status = f_directory_remove_custom(path, -1, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_directory/tests/unit/c/test-directory-touch.c b/level_0/f_directory/tests/unit/c/test-directory-touch.c index 303f37f..4170a1e 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-touch.c +++ b/level_0/f_directory/tests/unit/c/test-directory-touch.c @@ -39,7 +39,7 @@ void test__f_directory_touch__fails(void **state) { const f_status_t status = f_directory_touch(path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -89,7 +89,7 @@ void test__f_directory_touch__fails(void **state) { const f_status_t status = f_directory_touch(path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for @@ -140,7 +140,7 @@ void test__f_directory_touch__fails(void **state) { const f_status_t status = f_directory_touch(path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_directory/tests/unit/c/test-directory-touch_at.c b/level_0/f_directory/tests/unit/c/test-directory-touch_at.c index 6cd970d..163cb13 100644 --- a/level_0/f_directory/tests/unit/c/test-directory-touch_at.c +++ b/level_0/f_directory/tests/unit/c/test-directory-touch_at.c @@ -39,7 +39,7 @@ void test__f_directory_touch_at__fails(void **state) { const f_status_t status = f_directory_touch_at(1, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -89,7 +89,7 @@ void test__f_directory_touch_at__fails(void **state) { const f_status_t status = f_directory_touch_at(1, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for @@ -140,7 +140,7 @@ void test__f_directory_touch_at__fails(void **state) { const f_status_t status = f_directory_touch_at(1, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_environment/tests/unit/c/test-environment-get.c b/level_0/f_environment/tests/unit/c/test-environment-get.c index 352b28b..90324ee 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-get.c +++ b/level_0/f_environment/tests/unit/c/test-environment-get.c @@ -30,7 +30,7 @@ void test__f_environment_get__fails(void **state) { { const f_status_t status = f_environment_get(path, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_environment/tests/unit/c/test-environment-secure_is.c b/level_0/f_environment/tests/unit/c/test-environment-secure_is.c index 80e78b3..b3dff9c 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-secure_is.c +++ b/level_0/f_environment/tests/unit/c/test-environment-secure_is.c @@ -33,7 +33,7 @@ void test__f_environment_secure_is__fails(void **state) { const f_status_t status = f_environment_secure_is(); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -69,7 +69,7 @@ void test__f_environment_secure_is__fails(void **state) { const f_status_t status = f_environment_secure_is(); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } #endif // _di_libcap_ diff --git a/level_0/f_environment/tests/unit/c/test-environment-set.c b/level_0/f_environment/tests/unit/c/test-environment-set.c index 6d15726..408f683 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-set.c +++ b/level_0/f_environment/tests/unit/c/test-environment-set.c @@ -29,7 +29,7 @@ void test__f_environment_set__fails(void **state) { const f_status_t status = f_environment_set(path, path, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_environment/tests/unit/c/test-environment-unset.c b/level_0/f_environment/tests/unit/c/test-environment-unset.c index 2c630e2..6b08a03 100644 --- a/level_0/f_environment/tests/unit/c/test-environment-unset.c +++ b/level_0/f_environment/tests/unit/c/test-environment-unset.c @@ -29,7 +29,7 @@ void test__f_environment_unset__fails(void **state) { const f_status_t status = f_environment_unset(path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-clone.c b/level_0/f_file/tests/unit/c/test-file-clone.c index 1d18851..88e56b0 100644 --- a/level_0/f_file/tests/unit/c/test-file-clone.c +++ b/level_0/f_file/tests/unit/c/test-file-clone.c @@ -145,7 +145,7 @@ void test__f_file_clone__fails_for_link(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -203,7 +203,7 @@ void test__f_file_clone__fails_for_link(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -265,7 +265,7 @@ void test__f_file_clone__fails_for_link(void **state) { const f_status_t status = f_file_clone(path, path, 0, f_file_stat_flag_reference_e | f_file_stat_flag_group_e | f_file_stat_flag_owner_e); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -330,7 +330,7 @@ void test__f_file_clone__fails_for_link(void **state) { const f_status_t status = f_file_clone(path, path, 0, f_file_stat_flag_reference_e | f_file_stat_flag_group_e | f_file_stat_flag_owner_e); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } @@ -408,7 +408,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -478,7 +478,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -524,7 +524,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -583,7 +583,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -645,7 +645,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, f_file_stat_flag_reference_e | f_file_stat_flag_owner_e | f_file_stat_flag_group_e); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -710,7 +710,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, f_file_stat_flag_reference_e | f_file_stat_flag_owner_e | f_file_stat_flag_group_e); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -792,7 +792,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -884,7 +884,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -965,7 +965,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -1061,7 +1061,7 @@ void test__f_file_clone__fails_for_regular(void **state) { const f_status_t status = f_file_clone(path, path, 0, f_file_stat_flag_exclusive_e); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-close.c b/level_0/f_file/tests/unit/c/test-file-close.c index 61c6da8..cb3c3a2 100644 --- a/level_0/f_file/tests/unit/c/test-file-close.c +++ b/level_0/f_file/tests/unit/c/test-file-close.c @@ -35,7 +35,7 @@ void test__f_file_close__fails(void **state) { const f_status_t status = f_file_close(&id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); if (errnos[i] == EBADF || errnos[i] == EINTR) { assert_int_equal(id, 0); @@ -53,7 +53,7 @@ void test__f_file_close__fails(void **state) { { const f_status_t status = f_file_close(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-close_flush.c b/level_0/f_file/tests/unit/c/test-file-close_flush.c index f3a0496..0825517 100644 --- a/level_0/f_file/tests/unit/c/test-file-close_flush.c +++ b/level_0/f_file/tests/unit/c/test-file-close_flush.c @@ -38,7 +38,7 @@ void test__f_file_close_flush__fails(void **state) { const f_status_t status = f_file_close_flush(&id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); if (errnos[i] == EBADF || errnos[i] == EINTR) { assert_int_equal(id, 0); @@ -56,7 +56,7 @@ void test__f_file_close_flush__fails(void **state) { { const f_status_t status = f_file_close_flush(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-copy.c b/level_0/f_file/tests/unit/c/test-file-copy.c index cadcc34..d148adc 100644 --- a/level_0/f_file/tests/unit/c/test-file-copy.c +++ b/level_0/f_file/tests/unit/c/test-file-copy.c @@ -138,7 +138,7 @@ void test__f_file_copy__fails_for_block(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -200,7 +200,7 @@ void test__f_file_copy__fails_for_block(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -274,7 +274,7 @@ void test__f_file_copy__fails_for_character(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -336,7 +336,7 @@ void test__f_file_copy__fails_for_character(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -410,7 +410,7 @@ void test__f_file_copy__fails_for_directory(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -472,7 +472,7 @@ void test__f_file_copy__fails_for_directory(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -536,7 +536,7 @@ void test__f_file_copy__fails_for_fifo(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -598,7 +598,7 @@ void test__f_file_copy__fails_for_fifo(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -654,7 +654,7 @@ void test__f_file_copy__fails_for_link(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -731,7 +731,7 @@ void test__f_file_copy__fails_for_link(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -774,7 +774,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -845,7 +845,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -892,7 +892,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -952,7 +952,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -1035,7 +1035,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -1128,7 +1128,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -1210,7 +1210,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -1307,7 +1307,7 @@ void test__f_file_copy__fails_for_regular(void **state) { const f_status_t status = f_file_copy(path, path, mode, 0, f_file_stat_flag_exclusive_e); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } @@ -1381,7 +1381,7 @@ void test__f_file_copy__fails_for_socket(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -1444,7 +1444,7 @@ void test__f_file_copy__fails_for_socket(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-create.c b/level_0/f_file/tests/unit/c/test-file-create.c index 5713f65..efd8a32 100644 --- a/level_0/f_file/tests/unit/c/test-file-create.c +++ b/level_0/f_file/tests/unit/c/test-file-create.c @@ -65,7 +65,7 @@ void test__f_file_create__fails(void **state) { const f_status_t status = f_file_create(path, 0, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -101,7 +101,7 @@ void test__f_file_create__fails(void **state) { const f_status_t status = f_file_create(path, 0, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_at.c b/level_0/f_file/tests/unit/c/test-file-create_at.c index 84f0ce3..d925840 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_at.c @@ -67,7 +67,7 @@ void test__f_file_create_at__fails(void **state) { const f_status_t status = f_file_create_at(0, path, 0, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -103,7 +103,7 @@ void test__f_file_create_at__fails(void **state) { const f_status_t status = f_file_create_at(0, path, 0, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_device.c b/level_0/f_file/tests/unit/c/test-file-create_device.c index 9ba1c24..61d4c70 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_device.c +++ b/level_0/f_file/tests/unit/c/test-file-create_device.c @@ -61,7 +61,7 @@ void test__f_file_create_device__fails(void **state) { const f_status_t status = f_file_create_device(path, modes[j], 1, 1); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-create_device_at.c b/level_0/f_file/tests/unit/c/test-file-create_device_at.c index 60bd48e..a97b984 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_device_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_device_at.c @@ -63,7 +63,7 @@ void test__f_file_create_device_at__fails(void **state) { const f_status_t status = f_file_create_device_at(0, path, modes[j], 1, 1); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-create_fifo.c b/level_0/f_file/tests/unit/c/test-file-create_fifo.c index d4d50b8..6c4b5a9 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_fifo.c +++ b/level_0/f_file/tests/unit/c/test-file-create_fifo.c @@ -43,7 +43,7 @@ void test__f_file_create_fifo__fails(void **state) { const f_status_t status = f_file_create_fifo(path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c b/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c index d15fb66..a30d6f5 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_fifo_at.c @@ -45,7 +45,7 @@ void test__f_file_create_fifo_at__fails(void **state) { const f_status_t status = f_file_create_fifo_at(0, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-create_node.c b/level_0/f_file/tests/unit/c/test-file-create_node.c index b10821f..a5c369b 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_node.c +++ b/level_0/f_file/tests/unit/c/test-file-create_node.c @@ -61,7 +61,7 @@ void test__f_file_create_node__fails(void **state) { const f_status_t status = f_file_create_node(path, modes[j], 1); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-create_node_at.c b/level_0/f_file/tests/unit/c/test-file-create_node_at.c index cb5ba74..4b44c22 100644 --- a/level_0/f_file/tests/unit/c/test-file-create_node_at.c +++ b/level_0/f_file/tests/unit/c/test-file-create_node_at.c @@ -63,7 +63,7 @@ void test__f_file_create_node_at__fails(void **state) { const f_status_t status = f_file_create_node_at(0, path, modes[j], 1); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-descriptor.c b/level_0/f_file/tests/unit/c/test-file-descriptor.c index e92f4f6..3be16fe 100644 --- a/level_0/f_file/tests/unit/c/test-file-descriptor.c +++ b/level_0/f_file/tests/unit/c/test-file-descriptor.c @@ -24,7 +24,7 @@ void test__f_file_descriptor__fails(void **state) { { const f_status_t status = f_file_descriptor(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-exists.c b/level_0/f_file/tests/unit/c/test-file-exists.c index 01e9e03..599bdd2 100644 --- a/level_0/f_file/tests/unit/c/test-file-exists.c +++ b/level_0/f_file/tests/unit/c/test-file-exists.c @@ -23,16 +23,16 @@ void test__f_file_exists__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_buffer, - F_parameter, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_buffer), + F_status_set_error(F_parameter), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_false, - F_memory_not, - F_directory_not, - F_number_overflow, - F_file_stat, + F_status_set_error(F_memory_not), + F_status_set_error(F_directory_not), + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; for (int i = 0; i < 10; ++i) { @@ -42,7 +42,7 @@ void test__f_file_exists__fails(void **state) { const f_status_t status = f_file_exists(path, F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for for (int i = 0; i < 9; ++i) { @@ -52,7 +52,7 @@ void test__f_file_exists__fails(void **state) { const f_status_t status = f_file_exists(path, F_true); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-exists_at.c b/level_0/f_file/tests/unit/c/test-file-exists_at.c index 6650e6a..a1bccc1 100644 --- a/level_0/f_file/tests/unit/c/test-file-exists_at.c +++ b/level_0/f_file/tests/unit/c/test-file-exists_at.c @@ -23,16 +23,16 @@ void test__f_file_exists_at__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_directory_descriptor, - F_buffer, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_directory_descriptor), + F_status_set_error(F_buffer), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_false, - F_memory_not, - F_directory_not, - F_number_overflow, - F_file_stat, + F_status_set_error(F_memory_not), + F_status_set_error(F_directory_not), + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; for (int i = 0; i < 10; ++i) { @@ -42,7 +42,7 @@ void test__f_file_exists_at__fails(void **state) { const f_status_t status = f_file_exists_at(0, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-flush.c b/level_0/f_file/tests/unit/c/test-file-flush.c index 7e4362c..cc5a2ae 100644 --- a/level_0/f_file/tests/unit/c/test-file-flush.c +++ b/level_0/f_file/tests/unit/c/test-file-flush.c @@ -34,7 +34,7 @@ void test__f_file_flush__fails(void **state) { const f_status_t status = f_file_flush(0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-group_read.c b/level_0/f_file/tests/unit/c/test-file-group_read.c index 72ea0b0..04fdf5e 100644 --- a/level_0/f_file/tests/unit/c/test-file-group_read.c +++ b/level_0/f_file/tests/unit/c/test-file-group_read.c @@ -42,7 +42,7 @@ void test__f_file_group_read__fails(void **state) { const f_status_t status = f_file_group_read(path, F_true, &id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -52,7 +52,7 @@ void test__f_file_group_read__fails(void **state) { { const f_status_t status = f_file_group_read(f_string_empty_s, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-is.c b/level_0/f_file/tests/unit/c/test-file-is.c index 2786cc8..7a846bd 100644 --- a/level_0/f_file/tests/unit/c/test-file-is.c +++ b/level_0/f_file/tests/unit/c/test-file-is.c @@ -55,7 +55,7 @@ void test__f_file_is__fails(void **state) { const f_status_t status = f_file_is(path, types[j], F_false); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for @@ -68,7 +68,7 @@ void test__f_file_is__fails(void **state) { const f_status_t status = f_file_is(path, types[j], F_true); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-is_at.c b/level_0/f_file/tests/unit/c/test-file-is_at.c index 203f944..41ed324 100644 --- a/level_0/f_file/tests/unit/c/test-file-is_at.c +++ b/level_0/f_file/tests/unit/c/test-file-is_at.c @@ -23,16 +23,16 @@ void test__f_file_is_at__fails(void **state) { }; f_status_t statuss[] = { - F_access_denied, - F_directory_descriptor, - F_buffer, - F_loop, - F_name, + F_status_set_error(F_access_denied), + F_status_set_error(F_directory_descriptor), + F_status_set_error(F_buffer), + F_status_set_error(F_loop), + F_status_set_error(F_name), F_file_found_not, - F_memory_not, - F_directory_not, - F_number_overflow, - F_file_stat, + F_status_set_error(F_memory_not), + F_status_set_error(F_directory_not), + F_status_set_error(F_number_overflow), + F_status_set_error(F_file_stat), }; f_status_t types[] = { @@ -55,7 +55,7 @@ void test__f_file_is_at__fails(void **state) { const f_status_t status = f_file_is_at(0, path, types[j], 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); } // for } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-link.c b/level_0/f_file/tests/unit/c/test-file-link.c index 62843aa..14e23cd 100644 --- a/level_0/f_file/tests/unit/c/test-file-link.c +++ b/level_0/f_file/tests/unit/c/test-file-link.c @@ -58,7 +58,7 @@ void test__f_file_link__fails(void **state) { const f_status_t status = f_file_link(path, path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-link_at.c b/level_0/f_file/tests/unit/c/test-file-link_at.c index 8d9c664..73993bb 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_at.c @@ -60,7 +60,7 @@ void test__f_file_link_at__fails(void **state) { const f_status_t status = f_file_link_at(0, path, path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-link_hard.c b/level_0/f_file/tests/unit/c/test-file-link_hard.c index 3cec4e6..72ee732 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_hard.c +++ b/level_0/f_file/tests/unit/c/test-file-link_hard.c @@ -58,7 +58,7 @@ void test__f_file_link_hard__fails(void **state) { const f_status_t status = f_file_link_hard(path, path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-link_hard_at.c b/level_0/f_file/tests/unit/c/test-file-link_hard_at.c index 2619a42..23d7c74 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_hard_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_hard_at.c @@ -60,7 +60,7 @@ void test__f_file_link_hard_at__fails(void **state) { const f_status_t status = f_file_link_hard_at(0, 0, path, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-link_read.c b/level_0/f_file/tests/unit/c/test-file-link_read.c index 0ab0378..cf7fcb8 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_read.c +++ b/level_0/f_file/tests/unit/c/test-file-link_read.c @@ -56,7 +56,7 @@ void test__f_file_link_read__fails(void **state) { const f_status_t status = f_file_link_read(path, F_true, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -74,7 +74,7 @@ void test__f_file_link_read__fails(void **state) { { const f_status_t status = f_file_link_read(f_string_empty_s, F_true, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-link_read_at.c b/level_0/f_file/tests/unit/c/test-file-link_read_at.c index 23f2f3b..f163ade 100644 --- a/level_0/f_file/tests/unit/c/test-file-link_read_at.c +++ b/level_0/f_file/tests/unit/c/test-file-link_read_at.c @@ -56,7 +56,7 @@ void test__f_file_link_read_at__fails(void **state) { const f_status_t status = f_file_link_read_at(0, path, 0, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -70,7 +70,7 @@ void test__f_file_link_read_at__fails(void **state) { { const f_status_t status = f_file_link_read_at(0, f_string_empty_s, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-mode_determine.c b/level_0/f_file/tests/unit/c/test-file-mode_determine.c index 411bd34..1e57d82 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_determine.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_determine.c @@ -14,7 +14,7 @@ extern "C" { { const f_status_t status = f_file_mode_determine(mode_file, mode_change, 0, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-mode_from_string.c b/level_0/f_file/tests/unit/c/test-file-mode_from_string.c index d5db526..8128f29 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_from_string.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_from_string.c @@ -190,7 +190,7 @@ void test__f_file_mode_from_string__fails_basic(void **state) { const f_status_t status = f_file_mode_from_string(codes[i], 0, &mode, &replace); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -200,7 +200,7 @@ void test__f_file_mode_from_string__fails_basic(void **state) { { const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -208,7 +208,7 @@ void test__f_file_mode_from_string__fails_basic(void **state) { const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, &mode_file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -216,7 +216,7 @@ void test__f_file_mode_from_string__fails_basic(void **state) { const f_status_t status = f_file_mode_from_string(f_string_empty_s, 0, 0, &replace); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-mode_read.c b/level_0/f_file/tests/unit/c/test-file-mode_read.c index 876bb25..4380f5f 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_read.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_read.c @@ -44,7 +44,7 @@ void test__f_file_mode_read__fails(void **state) { const f_status_t status = f_file_mode_read(path, F_false, &mode); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -54,7 +54,7 @@ void test__f_file_mode_read__fails(void **state) { { const f_status_t status = f_file_mode_read(f_string_empty_s, F_true, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-mode_read_at.c b/level_0/f_file/tests/unit/c/test-file-mode_read_at.c index 06a5530..f726ec9 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_read_at.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_read_at.c @@ -44,7 +44,7 @@ void test__f_file_mode_read_at__fails(void **state) { const f_status_t status = f_file_mode_read_at(0, path, 0, &mode); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -54,7 +54,7 @@ void test__f_file_mode_read_at__fails(void **state) { { const f_status_t status = f_file_mode_read_at(0, f_string_empty_s, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-mode_set.c b/level_0/f_file/tests/unit/c/test-file-mode_set.c index 1d4c2f4..b82384c 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_set.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_set.c @@ -46,7 +46,7 @@ void test__f_file_mode_set__fails(void **state) { const f_status_t status = f_file_mode_set(path, mode); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_set_at.c b/level_0/f_file/tests/unit/c/test-file-mode_set_at.c index 4611286..9456b8b 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_set_at.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_set_at.c @@ -48,7 +48,7 @@ void test__f_file_mode_set_at__fails(void **state) { const f_status_t status = f_file_mode_set_at(0, path, mode); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } diff --git a/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c b/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c index 1fb6113..88d5526 100644 --- a/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c +++ b/level_0/f_file/tests/unit/c/test-file-mode_to_mode.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_file_mode_to_mode(mode, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-name_base.c b/level_0/f_file/tests/unit/c/test-file-name_base.c index 2592ff6..a8f0726 100644 --- a/level_0/f_file/tests/unit/c/test-file-name_base.c +++ b/level_0/f_file/tests/unit/c/test-file-name_base.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_file_name_base(f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-name_directory.c b/level_0/f_file/tests/unit/c/test-file-name_directory.c index 238b8ce..6fdc8a4 100644 --- a/level_0/f_file/tests/unit/c/test-file-name_directory.c +++ b/level_0/f_file/tests/unit/c/test-file-name_directory.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_file_name_directory(f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-open.c b/level_0/f_file/tests/unit/c/test-file-open.c index ff6ca9f..5cbb4c5 100644 --- a/level_0/f_file/tests/unit/c/test-file-open.c +++ b/level_0/f_file/tests/unit/c/test-file-open.c @@ -66,7 +66,7 @@ void test__f_file_open__fails(void **state) { const f_status_t status = f_file_open(path, 0, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -78,7 +78,7 @@ void test__f_file_open__fails(void **state) { { const f_status_t status = f_file_open(path, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-open_at.c b/level_0/f_file/tests/unit/c/test-file-open_at.c index d18b6b3..6f406ec 100644 --- a/level_0/f_file/tests/unit/c/test-file-open_at.c +++ b/level_0/f_file/tests/unit/c/test-file-open_at.c @@ -68,7 +68,7 @@ void test__f_file_open_at__fails(void **state) { const f_status_t status = f_file_open_at(0, path, 0, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -78,7 +78,7 @@ void test__f_file_open_at__fails(void **state) { { const f_status_t status = f_file_open_at(0, f_string_empty_s, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-owner_read.c b/level_0/f_file/tests/unit/c/test-file-owner_read.c index 6f3cd29..ac7e641 100644 --- a/level_0/f_file/tests/unit/c/test-file-owner_read.c +++ b/level_0/f_file/tests/unit/c/test-file-owner_read.c @@ -42,7 +42,7 @@ void test__f_file_owner_read__fails(void **state) { const f_status_t status = f_file_owner_read(path, F_true, &id); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -52,7 +52,7 @@ void test__f_file_owner_read__fails(void **state) { { const f_status_t status = f_file_owner_read(f_string_empty_s, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-read.c b/level_0/f_file/tests/unit/c/test-file-read.c index 1834674..9223422 100644 --- a/level_0/f_file/tests/unit/c/test-file-read.c +++ b/level_0/f_file/tests/unit/c/test-file-read.c @@ -43,7 +43,7 @@ void test__f_file_read__fails(void **state) { const f_status_t status = f_file_read(file, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -60,7 +60,7 @@ void test__f_file_read__fails(void **state) { { const f_status_t status = f_file_read(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } file.size_read = 0; @@ -68,7 +68,7 @@ void test__f_file_read__fails(void **state) { { const f_status_t status = f_file_read(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -76,7 +76,7 @@ void test__f_file_read__fails(void **state) { const f_status_t status = f_file_read(file, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-read_block.c b/level_0/f_file/tests/unit/c/test-file-read_block.c index 74ad895..8e6b0fa 100644 --- a/level_0/f_file/tests/unit/c/test-file-read_block.c +++ b/level_0/f_file/tests/unit/c/test-file-read_block.c @@ -43,7 +43,7 @@ void test__f_file_read_block__fails(void **state) { const f_status_t status = f_file_read_block(file, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -60,7 +60,7 @@ void test__f_file_read_block__fails(void **state) { { const f_status_t status = f_file_read_block(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } file.size_read = 0; @@ -68,7 +68,7 @@ void test__f_file_read_block__fails(void **state) { { const f_status_t status = f_file_read_block(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -76,7 +76,7 @@ void test__f_file_read_block__fails(void **state) { const f_status_t status = f_file_read_block(file, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-read_until.c b/level_0/f_file/tests/unit/c/test-file-read_until.c index 796f391..3e44aa6 100644 --- a/level_0/f_file/tests/unit/c/test-file-read_until.c +++ b/level_0/f_file/tests/unit/c/test-file-read_until.c @@ -43,7 +43,7 @@ void test__f_file_read_until__fails(void **state) { const f_status_t status = f_file_read_until(file, 1, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -60,7 +60,7 @@ void test__f_file_read_until__fails(void **state) { { const f_status_t status = f_file_read_until(file, 1, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } file.size_read = 0; @@ -68,7 +68,7 @@ void test__f_file_read_until__fails(void **state) { { const f_status_t status = f_file_read_until(file, 1, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -76,7 +76,7 @@ void test__f_file_read_until__fails(void **state) { const f_status_t status = f_file_read_until(file, 1, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } f_string_dynamic_resize(0, &buffer); diff --git a/level_0/f_file/tests/unit/c/test-file-remove.c b/level_0/f_file/tests/unit/c/test-file-remove.c index bd3db21..43b26f5 100644 --- a/level_0/f_file/tests/unit/c/test-file-remove.c +++ b/level_0/f_file/tests/unit/c/test-file-remove.c @@ -49,7 +49,7 @@ void test__f_file_remove__fails(void **state) { const f_status_t status = f_file_remove(path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-remove_at.c b/level_0/f_file/tests/unit/c/test-file-remove_at.c index aac3ca8..edc42ae 100644 --- a/level_0/f_file/tests/unit/c/test-file-remove_at.c +++ b/level_0/f_file/tests/unit/c/test-file-remove_at.c @@ -51,7 +51,7 @@ void test__f_file_remove_at__fails(void **state) { const f_status_t status = f_file_remove_at(0, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-rename.c b/level_0/f_file/tests/unit/c/test-file-rename.c index e38fb26..347de5c 100644 --- a/level_0/f_file/tests/unit/c/test-file-rename.c +++ b/level_0/f_file/tests/unit/c/test-file-rename.c @@ -61,7 +61,7 @@ void test__f_file_rename__fails(void **state) { const f_status_t status = f_file_rename(path, path); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-rename_at.c b/level_0/f_file/tests/unit/c/test-file-rename_at.c index 0373bf0..9c58ac2 100644 --- a/level_0/f_file/tests/unit/c/test-file-rename_at.c +++ b/level_0/f_file/tests/unit/c/test-file-rename_at.c @@ -68,7 +68,7 @@ void test__f_file_rename_at__fails(void **state) { const f_status_t status = f_file_rename_at(0, 0, path, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-seek.c b/level_0/f_file/tests/unit/c/test-file-seek.c index a1bae7f..8f03596 100644 --- a/level_0/f_file/tests/unit/c/test-file-seek.c +++ b/level_0/f_file/tests/unit/c/test-file-seek.c @@ -34,7 +34,7 @@ void test__f_file_seek__fails(void **state) { const f_status_t status = f_file_seek(0, 0, 0, &seeked); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -46,19 +46,19 @@ void test__f_file_seek__fails(void **state) { { const f_status_t status = f_file_seek(0, -1, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { const f_status_t status = f_file_seek(0, -1, 0, &seeked); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { const f_status_t status = f_file_seek(0, 0, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-size.c b/level_0/f_file/tests/unit/c/test-file-size.c index 7a8eab3..ee07e1e 100644 --- a/level_0/f_file/tests/unit/c/test-file-size.c +++ b/level_0/f_file/tests/unit/c/test-file-size.c @@ -44,7 +44,7 @@ void test__f_file_size__fails(void **state) { const f_status_t status = f_file_size(path, F_false, &size); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -54,7 +54,7 @@ void test__f_file_size__fails(void **state) { { const f_status_t status = f_file_size(f_string_empty_s, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-size_at.c b/level_0/f_file/tests/unit/c/test-file-size_at.c index 3de4ad8..b5559de 100644 --- a/level_0/f_file/tests/unit/c/test-file-size_at.c +++ b/level_0/f_file/tests/unit/c/test-file-size_at.c @@ -46,7 +46,7 @@ void test__f_file_size_at__fails(void **state) { const f_status_t status = f_file_size_at(0, path, F_false, &size); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -56,7 +56,7 @@ void test__f_file_size_at__fails(void **state) { { const f_status_t status = f_file_size_at(0, f_string_empty_s, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-size_by_id.c b/level_0/f_file/tests/unit/c/test-file-size_by_id.c index 619e993..8bf580f 100644 --- a/level_0/f_file/tests/unit/c/test-file-size_by_id.c +++ b/level_0/f_file/tests/unit/c/test-file-size_by_id.c @@ -44,7 +44,7 @@ void test__f_file_size_by_id__fails(void **state) { const f_status_t status = f_file_size_by_id(0, &size); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -54,7 +54,7 @@ void test__f_file_size_by_id__fails(void **state) { { const f_status_t status = f_file_size_by_id(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stat.c b/level_0/f_file/tests/unit/c/test-file-stat.c index c19228c..29dca5c 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat.c +++ b/level_0/f_file/tests/unit/c/test-file-stat.c @@ -46,7 +46,7 @@ void test__f_file_stat__fails(void **state) { const f_status_t status = f_file_stat(path, F_false, &result); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -56,7 +56,7 @@ void test__f_file_stat__fails(void **state) { { const f_status_t status = f_file_stat(f_string_empty_s, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stat_at.c b/level_0/f_file/tests/unit/c/test-file-stat_at.c index ba565f1..4d9aee0 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat_at.c +++ b/level_0/f_file/tests/unit/c/test-file-stat_at.c @@ -48,7 +48,7 @@ void test__f_file_stat_at__fails(void **state) { const f_status_t status = f_file_stat_at(0, path, F_false, &result); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -58,7 +58,7 @@ void test__f_file_stat_at__fails(void **state) { { const f_status_t status = f_file_stat_at(0, f_string_empty_s, F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stat_by_id.c b/level_0/f_file/tests/unit/c/test-file-stat_by_id.c index ca8c5a0..ba220ef 100644 --- a/level_0/f_file/tests/unit/c/test-file-stat_by_id.c +++ b/level_0/f_file/tests/unit/c/test-file-stat_by_id.c @@ -46,7 +46,7 @@ void test__f_file_stat_by_id__fails(void **state) { const f_status_t status = f_file_stat_by_id(0, &result); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -56,7 +56,7 @@ void test__f_file_stat_by_id__fails(void **state) { { const f_status_t status = f_file_stat_by_id(0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_close.c b/level_0/f_file/tests/unit/c/test-file-stream_close.c index aaf8aab..3c42a81 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_close.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_close.c @@ -157,7 +157,7 @@ void test__f_file_stream_close__fails_for_stream(void **state) { { const f_status_t status = f_file_stream_close(F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_open.c b/level_0/f_file/tests/unit/c/test-file-stream_open.c index d1ddfca..38726c8 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_open.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_open.c @@ -66,7 +66,7 @@ void test__f_file_stream_open__fails(void **state) { const f_status_t status = f_file_stream_open(path, path, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for for (int i = 0; i < 21; ++i) { @@ -78,7 +78,7 @@ void test__f_file_stream_open__fails(void **state) { const f_status_t status = f_file_stream_open(path, f_string_empty_s, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -88,7 +88,7 @@ void test__f_file_stream_open__fails(void **state) { { const f_status_t status = f_file_stream_open(f_string_empty_s, f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c b/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c index 7d4d997..317ac8e 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_open_descriptor.c @@ -64,7 +64,7 @@ void test__f_file_stream_open_descriptor__fails(void **state) { const f_status_t status = f_file_stream_open_descriptor(path, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for for (int i = 0; i < 20; ++i) { @@ -76,7 +76,7 @@ void test__f_file_stream_open_descriptor__fails(void **state) { const f_status_t status = f_file_stream_open_descriptor(f_string_empty_s, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -86,7 +86,7 @@ void test__f_file_stream_open_descriptor__fails(void **state) { { const f_status_t status = f_file_stream_open_descriptor(f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_read.c b/level_0/f_file/tests/unit/c/test-file-stream_read.c index 2a8b581..fcdf1a7 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_read.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_read.c @@ -53,7 +53,7 @@ void test__f_file_stream_read__fails(void **state) { const f_status_t status = f_file_stream_read(file, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -67,7 +67,7 @@ void test__f_file_stream_read__fails(void **state) { { const f_status_t status = f_file_stream_read(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } file.size_read = 0; @@ -75,7 +75,7 @@ void test__f_file_stream_read__fails(void **state) { { const f_status_t status = f_file_stream_read(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -83,7 +83,7 @@ void test__f_file_stream_read__fails(void **state) { const f_status_t status = f_file_stream_read(file, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_read_block.c b/level_0/f_file/tests/unit/c/test-file-stream_read_block.c index 0410682..2f0f122 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_read_block.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_read_block.c @@ -53,7 +53,7 @@ void test__f_file_stream_read_block__fails(void **state) { const f_status_t status = f_file_stream_read_block(file, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -67,7 +67,7 @@ void test__f_file_stream_read_block__fails(void **state) { { const f_status_t status = f_file_stream_read_block(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } file.size_read = 0; @@ -75,7 +75,7 @@ void test__f_file_stream_read_block__fails(void **state) { { const f_status_t status = f_file_stream_read_block(file, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -83,7 +83,7 @@ void test__f_file_stream_read_block__fails(void **state) { const f_status_t status = f_file_stream_read_block(file, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_read_until.c b/level_0/f_file/tests/unit/c/test-file-stream_read_until.c index dbdbfd7..c8a408c 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_read_until.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_read_until.c @@ -53,7 +53,7 @@ void test__f_file_stream_read_until__fails(void **state) { const f_status_t status = f_file_stream_read_until(file, 1, &buffer); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for f_string_dynamic_resize(0, &buffer); @@ -67,7 +67,7 @@ void test__f_file_stream_read_until__fails(void **state) { { const f_status_t status = f_file_stream_read_until(file, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } file.size_read = 0; @@ -75,7 +75,7 @@ void test__f_file_stream_read_until__fails(void **state) { { const f_status_t status = f_file_stream_read_until(file, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -83,7 +83,7 @@ void test__f_file_stream_read_until__fails(void **state) { const f_status_t status = f_file_stream_read_until(file, 0, &string); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_reopen.c b/level_0/f_file/tests/unit/c/test-file-stream_reopen.c index e176a48..a208463 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_reopen.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_reopen.c @@ -62,7 +62,7 @@ void test__f_file_stream_reopen__fails(void **state) { const f_status_t status = f_file_stream_reopen(path, path, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for for (int i = 0; i < 19; ++i) { @@ -74,7 +74,7 @@ void test__f_file_stream_reopen__fails(void **state) { const f_status_t status = f_file_stream_reopen(path, f_string_empty_s, &file); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -84,7 +84,7 @@ void test__f_file_stream_reopen__fails(void **state) { { const f_status_t status = f_file_stream_reopen(f_string_empty_s, f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write.c b/level_0/f_file/tests/unit/c/test-file-stream_write.c index 4b62b81..7af121d 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write.c @@ -47,7 +47,7 @@ void test__f_file_stream_write__fails(void **state) { const f_status_t status = f_file_stream_write(file, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -60,7 +60,7 @@ void test__f_file_stream_write__fails(void **state) { { const f_status_t status = f_file_stream_write(file, f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write_block.c b/level_0/f_file/tests/unit/c/test-file-stream_write_block.c index 6ad1ac7..40e9d1a 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write_block.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write_block.c @@ -47,7 +47,7 @@ void test__f_file_stream_write_block__fails(void **state) { const f_status_t status = f_file_stream_write_block(file, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -60,7 +60,7 @@ void test__f_file_stream_write_block__fails(void **state) { { const f_status_t status = f_file_stream_write_block(file, f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write_range.c b/level_0/f_file/tests/unit/c/test-file-stream_write_range.c index 6d8e5b9..34cbb22 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write_range.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write_range.c @@ -48,7 +48,7 @@ void test__f_file_stream_write_range__fails(void **state) { const f_status_t status = f_file_stream_write_range(file, path, range, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -63,7 +63,7 @@ void test__f_file_stream_write_range__fails(void **state) { { const f_status_t status = f_file_stream_write_range(file, f_string_empty_s, range, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-stream_write_until.c b/level_0/f_file/tests/unit/c/test-file-stream_write_until.c index 149d42c..fba5f52 100644 --- a/level_0/f_file/tests/unit/c/test-file-stream_write_until.c +++ b/level_0/f_file/tests/unit/c/test-file-stream_write_until.c @@ -47,7 +47,7 @@ void test__f_file_stream_write_until__fails(void **state) { const f_status_t status = f_file_stream_write_until(file, path, 1, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -60,7 +60,7 @@ void test__f_file_stream_write_until__fails(void **state) { { const f_status_t status = f_file_stream_write_until(file, f_string_empty_s, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-touch.c b/level_0/f_file/tests/unit/c/test-file-touch.c index 90fbea6..9efe15f 100644 --- a/level_0/f_file/tests/unit/c/test-file-touch.c +++ b/level_0/f_file/tests/unit/c/test-file-touch.c @@ -59,7 +59,7 @@ void test__f_file_touch__fails(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -112,7 +112,7 @@ void test__f_file_touch__fails(void **state) { const f_status_t status = f_file_touch(path, mode, F_true); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-touch_at.c b/level_0/f_file/tests/unit/c/test-file-touch_at.c index 59fbe26..2e3b72c 100644 --- a/level_0/f_file/tests/unit/c/test-file-touch_at.c +++ b/level_0/f_file/tests/unit/c/test-file-touch_at.c @@ -61,7 +61,7 @@ void test__f_file_touch_at__fails(void **state) { assert_int_equal(status, F_none); } else { - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } } // for } @@ -114,7 +114,7 @@ void test__f_file_touch_at__fails(void **state) { const f_status_t status = f_file_touch_at(1, path, mode, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } } diff --git a/level_0/f_file/tests/unit/c/test-file-type.c b/level_0/f_file/tests/unit/c/test-file-type.c index 55e01c3..a35807e 100644 --- a/level_0/f_file/tests/unit/c/test-file-type.c +++ b/level_0/f_file/tests/unit/c/test-file-type.c @@ -44,7 +44,7 @@ void test__f_file_type__fails(void **state) { const f_status_t status = f_file_type(path, F_false, &type); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -54,7 +54,7 @@ void test__f_file_type__fails(void **state) { { const f_status_t status = f_file_type(f_string_empty_s, F_true, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-type_at.c b/level_0/f_file/tests/unit/c/test-file-type_at.c index 8ea5a8a..229f63a 100644 --- a/level_0/f_file/tests/unit/c/test-file-type_at.c +++ b/level_0/f_file/tests/unit/c/test-file-type_at.c @@ -44,7 +44,7 @@ void test__f_file_type_at__fails(void **state) { const f_status_t status = f_file_type_at(0, path, 0, &mode); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -54,7 +54,7 @@ void test__f_file_type_at__fails(void **state) { { const f_status_t status = f_file_type_at(0, f_string_empty_s, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-umask_get.c b/level_0/f_file/tests/unit/c/test-file-umask_get.c index 9f405d0..d9cd6e1 100644 --- a/level_0/f_file/tests/unit/c/test-file-umask_get.c +++ b/level_0/f_file/tests/unit/c/test-file-umask_get.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_file_umask_get(0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-write.c b/level_0/f_file/tests/unit/c/test-file-write.c index 3830b4f..301bf70 100644 --- a/level_0/f_file/tests/unit/c/test-file-write.c +++ b/level_0/f_file/tests/unit/c/test-file-write.c @@ -44,7 +44,7 @@ void test__f_file_write__fails(void **state) { const f_status_t status = f_file_write(file, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for for (int i = 0; i < 9; ++i) { @@ -61,7 +61,7 @@ void test__f_file_write__fails(void **state) { const f_status_t status = f_file_write(file, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -74,7 +74,7 @@ void test__f_file_write__fails(void **state) { { const f_status_t status = f_file_write(file, f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-write_block.c b/level_0/f_file/tests/unit/c/test-file-write_block.c index ef7bd8c..406923d 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_block.c +++ b/level_0/f_file/tests/unit/c/test-file-write_block.c @@ -44,7 +44,7 @@ void test__f_file_write_block__fails(void **state) { const f_status_t status = f_file_write_block(file, path, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -57,7 +57,7 @@ void test__f_file_write_block__fails(void **state) { { const f_status_t status = f_file_write_block(file, f_string_empty_s, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-write_range.c b/level_0/f_file/tests/unit/c/test-file-write_range.c index 5c3bcb3..3cb1f65 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_range.c +++ b/level_0/f_file/tests/unit/c/test-file-write_range.c @@ -45,7 +45,7 @@ void test__f_file_write_range__fails(void **state) { const f_status_t status = f_file_write_range(file, path, range, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -60,7 +60,7 @@ void test__f_file_write_range__fails(void **state) { { const f_status_t status = f_file_write_range(file, f_string_empty_s, range, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_file/tests/unit/c/test-file-write_until.c b/level_0/f_file/tests/unit/c/test-file-write_until.c index efcb932..aa71a6d 100644 --- a/level_0/f_file/tests/unit/c/test-file-write_until.c +++ b/level_0/f_file/tests/unit/c/test-file-write_until.c @@ -44,7 +44,7 @@ void test__f_file_write_until__fails(void **state) { const f_status_t status = f_file_write_until(file, path, 1, 0); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, F_status_set_error(statuss[i])); } // for } @@ -57,7 +57,7 @@ void test__f_file_write_until__fails(void **state) { { const f_status_t status = f_file_write_until(file, f_string_empty_s, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_iki/tests/unit/c/test-iki-content_is.c b/level_0/f_iki/tests/unit/c/test-iki-content_is.c index bf77651..f66e749 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-content_is.c +++ b/level_0/f_iki/tests/unit/c/test-iki-content_is.c @@ -47,7 +47,7 @@ void test__f_iki_content_is__returns_false(void **state) { { const f_status_t status = f_iki_content_is(f_string_empty_s, f_string_empty_s); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_iki/tests/unit/c/test-iki-content_partial_is.c b/level_0/f_iki/tests/unit/c/test-iki-content_partial_is.c index 9f3da1c..c039071 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-content_partial_is.c +++ b/level_0/f_iki/tests/unit/c/test-iki-content_partial_is.c @@ -65,7 +65,7 @@ void test__f_iki_content_partial_is__returns_false(void **state) { const f_status_t status = f_iki_content_partial_is(f_string_empty_s, range, f_string_empty_s); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_iki/tests/unit/c/test-iki-read.c b/level_0/f_iki/tests/unit/c/test-iki-read.c index 163c262..1f6a02d 100644 --- a/level_0/f_iki/tests/unit/c/test-iki-read.c +++ b/level_0/f_iki/tests/unit/c/test-iki-read.c @@ -17,7 +17,7 @@ extern "C" { const f_status_t status = f_iki_read(the_state, 0, &range, &iki); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -25,7 +25,7 @@ extern "C" { const f_status_t status = f_iki_read(the_state, &empty, 0, &iki); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { @@ -33,7 +33,7 @@ extern "C" { const f_status_t status = f_iki_read(the_state, &empty, &range, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ @@ -246,7 +246,7 @@ void test__f_iki_read__works(void **state) { const f_status_t status = f_iki_read(the_state, &buffers[i], &range, &iki); - assert_int_equal(F_status_set_fine(status), statuss[i]); + assert_int_equal(status, statuss[i]); if (matches[i] == 2) { const f_status_t status = f_iki_read(the_state, &buffers[i], &range, &iki); diff --git a/level_0/f_limit/tests/unit/c/test-limit-process.c b/level_0/f_limit/tests/unit/c/test-limit-process.c index 57deb85..a073c62 100644 --- a/level_0/f_limit/tests/unit/c/test-limit-process.c +++ b/level_0/f_limit/tests/unit/c/test-limit-process.c @@ -42,7 +42,7 @@ void test__f_limit_process__fails(void **state) { { const f_status_t status = f_limit_process(1, 1, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_memory/tests/unit/c/test-memory-adjust.c b/level_0/f_memory/tests/unit/c/test-memory-adjust.c index 892e2d5..04b911e 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-adjust.c +++ b/level_0/f_memory/tests/unit/c/test-memory-adjust.c @@ -11,13 +11,13 @@ extern "C" { { const f_status_t status = f_memory_adjust(1, 4, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { const f_status_t status = f_memory_adjust(1, 4, 1, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_memory/tests/unit/c/test-memory-delete.c b/level_0/f_memory/tests/unit/c/test-memory-delete.c index 85ddd6a..44522d3 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-delete.c +++ b/level_0/f_memory/tests/unit/c/test-memory-delete.c @@ -101,7 +101,7 @@ void test__f_memory_delete__frees_resized_memory(void **state) { { const f_status_t status = f_memory_delete(4, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_memory/tests/unit/c/test-memory-destroy.c b/level_0/f_memory/tests/unit/c/test-memory-destroy.c index 75c3046..9b844ee 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-destroy.c +++ b/level_0/f_memory/tests/unit/c/test-memory-destroy.c @@ -101,7 +101,7 @@ void test__f_memory_destroy__frees_resized_memory(void **state) { { const f_status_t status = f_memory_destroy(4, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_memory/tests/unit/c/test-memory-new.c b/level_0/f_memory/tests/unit/c/test-memory-new.c index 257500e..66d3a46 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-new.c +++ b/level_0/f_memory/tests/unit/c/test-memory-new.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_memory_new(1, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c b/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c index 859727b..990a7b0 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c +++ b/level_0/f_memory/tests/unit/c/test-memory-new_aligned.c @@ -11,7 +11,7 @@ extern "C" { { const f_status_t status = f_memory_new_aligned(1, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_memory/tests/unit/c/test-memory-resize.c b/level_0/f_memory/tests/unit/c/test-memory-resize.c index 8070bf0..4ea57d8 100644 --- a/level_0/f_memory/tests/unit/c/test-memory-resize.c +++ b/level_0/f_memory/tests/unit/c/test-memory-resize.c @@ -11,13 +11,13 @@ extern "C" { { const f_status_t status = f_memory_resize(1, 4, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } { const f_status_t status = f_memory_resize(1, 4, 1, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_path/tests/unit/c/test-path-current.c b/level_0/f_path/tests/unit/c/test-path-current.c index 5627d2e..e592b90 100644 --- a/level_0/f_path/tests/unit/c/test-path-current.c +++ b/level_0/f_path/tests/unit/c/test-path-current.c @@ -93,7 +93,7 @@ void test__f_path_current__fails(void **state) { { const f_status_t status = f_path_current(F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c b/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c index 744c616..889f038 100644 --- a/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c +++ b/level_0/f_path/tests/unit/c/test-path-directory_cleanup.c @@ -13,7 +13,7 @@ extern "C" { { const f_status_t status = f_path_directory_cleanup(path, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_path/tests/unit/c/test-path-real.c b/level_0/f_path/tests/unit/c/test-path-real.c index a3957f6..7cf24c3 100644 --- a/level_0/f_path/tests/unit/c/test-path-real.c +++ b/level_0/f_path/tests/unit/c/test-path-real.c @@ -56,7 +56,7 @@ void test__f_path_real__fails(void **state) { { const f_status_t status = f_path_real(path, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c index e308c73..571daad 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple.c @@ -12,7 +12,7 @@ void test__f_serialize_from_simple__parameter_checking(void **state) { { const f_status_t status = f_serialize_from_simple(source, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c index cd87b4a..a4ec8bc 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_get.c @@ -12,7 +12,7 @@ void test__f_serialize_from_simple_get__parameter_checking(void **state) { { const f_status_t status = f_serialize_from_simple_get(source, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c index 85f658d..23dddea 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_range.c @@ -12,7 +12,7 @@ void test__f_serialize_from_simple_range__parameter_checking(void **state) { { const f_status_t status = f_serialize_from_simple_range(source, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c index 8c5668f..5369272 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-from_simple_select.c @@ -12,7 +12,7 @@ void test__f_serialize_from_simple_select__parameter_checking(void **state) { { const f_status_t status = f_serialize_from_simple_select(source, 0, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } diff --git a/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c b/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c index fac323a..83406f7 100644 --- a/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c +++ b/level_0/f_serialize/tests/unit/c/test-serialize-to_simple.c @@ -12,7 +12,7 @@ void test__f_serialize_to_simple__parameter_checking(void **state) { { const f_status_t status = f_serialize_to_simple(source, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } diff --git a/level_0/f_status_string/tests/unit/c/test-status_string-to.c b/level_0/f_status_string/tests/unit/c/test-status_string-to.c index e8dea18..9026a10 100644 --- a/level_0/f_status_string/tests/unit/c/test-status_string-to.c +++ b/level_0/f_status_string/tests/unit/c/test-status_string-to.c @@ -23,7 +23,7 @@ void test__f_status_string_to__parameter_checking(void **state) { { const f_status_t status = f_status_string_to(F_false, 0); - assert_int_equal(F_status_set_fine(status), F_parameter); + assert_int_equal(status, F_status_set_error(F_parameter)); } } -- 1.8.3.1