]> Kevux Git Server - kevux-tools/commitdiff
Bugfix: Build and test problems.
authorKevin Day <Kevin@kevux.org>
Fri, 9 Jan 2026 02:55:16 +0000 (20:55 -0600)
committerKevin Day <Kevin@kevux.org>
Fri, 9 Jan 2026 02:55:16 +0000 (20:55 -0600)
Add missing `test` mode.

Some of the build settings files are missing the shared/static linking distinctions.
Some of the build settings are missing static dependency files, like `-l:libfll.a`.

Add missing ifdef endif comment.

The `main_test__remove()` should instead be `kt_main_test__remove()`.

The static string allocation functions did not get updated to match changes made for the FLL 0.8 API.
Fix them and switch to the new `macro_f_string_static_t_initialize_3()`.

The `__wrap_f_file_access` does not seem to be necessary anymore.
I need to determine why and I need to make sure this is not some regression.
For now just remove this because it is clear that I haven't kept the test files up to date.

25 files changed:
data/build/remove/settings-mocks.remove
data/build/remove/settings-tests.remove
data/build/stand_alone/settings/settings.remove
data/build/stand_alone/settings/settings.rm
data/build/stand_alone/settings/settings.rmdir
data/build/stand_alone/settings/settings.tacocat
data/build/stand_alone/settings/settings.unlink
sources/c/program/kevux/tools/remove/remove/main.c
tests/unit/remove/c/main-test-remove.c
tests/unit/remove/c/main-test-remove.h
tests/unit/remove/c/test-remove-date_accessed.c
tests/unit/remove/c/test-remove-date_changed.c
tests/unit/remove/c/test-remove-date_updated.c
tests/unit/remove/c/test-remove-directory_no_args.c
tests/unit/remove/c/test-remove-directory_recurse_simple.c
tests/unit/remove/c/test-remove-directory_tree_simple.c
tests/unit/remove/c/test-remove-epochtime.c
tests/unit/remove/c/test-remove-file_mode.c
tests/unit/remove/c/test-remove-file_type.c
tests/unit/remove/c/test-remove-force.c
tests/unit/remove/c/test-remove-group.c
tests/unit/remove/c/test-remove-regular_no_args.c
tests/unit/remove/c/test-remove-time.c
tests/unit/remove/c/test-remove-unix.c
tests/unit/remove/c/test-remove-user.c

index c51cbde20acba2a530096f9fc441d88a829a0abe..a3ce359ca7f5f468396fa000d6f078ffaea4e7d7 100644 (file)
@@ -20,7 +20,7 @@ version_file micro
 version_target minor
 
 modes android clang coverage debug gcc flex_arrays fanalyzer individual individual_thread level monolithic test thread threadless
-modes_default debug gcc monolithic thread
+modes_default debug gcc monolithic test thread
 
 build_compiler gcc
 build_compiler-clang clang
@@ -28,11 +28,11 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc
-build_libraries-individual -lfll_error -lfll_print -lfll_program
-build_libraries-individual -lfl_conversion -lfl_directory -lfl_path -lfl_print
-build_libraries-individual -lf_account -lf_color -lf_compare -lf_console -lf_conversion -lf_directory -lf_file -lf_memory -lf_path -lf_pipe -lf_print -lf_rip -lf_signal -lf_string -lf_time -lf_type_array -lf_utf
-build_libraries-individual_thread -lf_thread
+build_libraries_shared -lc
+build_libraries_shared-individual -lfll_error -lfll_print -lfll_program
+build_libraries_shared-individual -lfl_conversion -lfl_directory -lfl_path -lfl_print
+build_libraries_shared-individual -lf_account -lf_color -lf_compare -lf_console -lf_conversion -lf_directory -lf_file -lf_memory -lf_path -lf_pipe -lf_print -lf_rip -lf_signal -lf_string -lf_time -lf_type_array -lf_utf
+build_libraries_shared-individual_thread -lf_thread
 
 build_libraries_static -l:libc.a
 build_libraries_static-individual -l:libfll_error.a -l:libfll_print.a -l:libfll_program.a
index b4c8c240222ce68c4694098b2ce7c1be219ff67d..39d12fbeca5a59b8fa12417f29758cbe840b6f45 100644 (file)
@@ -15,7 +15,7 @@ version_file micro
 version_target minor
 
 modes android clang coverage debug gcc flex_arrays fanalyzer individual individual_thread level monolithic test thread threadless
-modes_default debug gcc monolithic thread
+modes_default debug gcc monolithic test thread
 
 build_compiler gcc
 build_compiler-clang clang
@@ -23,17 +23,19 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc -lcmocka -lremove
-build_libraries-individual -lfll_error -lfll_print -lfll_program
-build_libraries-individual -lfl_conversion -lfl_directory -lfl_path -lfl_print
-build_libraries-individual -lf_account -lf_color -lf_compare -lf_console -lf_conversion -lf_directory -lf_file -lf_memory -lf_path -lf_pipe -lf_print -lf_rip -lf_signal -lf_string -lf_time -lf_type_array -lf_utf
-build_libraries-individual_thread -lf_thread
+build_libraries_shared -lc -lcmocka -lremove
+build_libraries_shared-individual -lfll_error -lfll_print -lfll_program
+build_libraries_shared-individual -lfl_conversion -lfl_directory -lfl_path -lfl_print
+build_libraries_shared-individual -lf_account -lf_color -lf_compare -lf_console -lf_conversion -lf_directory -lf_file -lf_memory -lf_path -lf_pipe -lf_print -lf_rip -lf_signal -lf_string -lf_time -lf_type_array -lf_utf
+build_libraries_shared-individual_thread -lf_thread
+build_libraries_shared-monolithic -lfll
 
-build_libraries_static -l:libc.a
+build_libraries_static -l:libc.a -l:libcmocka.a -l:libremove.a
 build_libraries_static-individual -l:libfll_error.a -l:libfll_print.a -l:libfll_program.a
 build_libraries_static-individual -l:libfl_conversion.a -l:libfl_directory.a -l:libfl_path.a -l:libfl_print.a
 build_libraries_static-individual -l:libf_account.a -l:libf_color.a -l:libf_compare.a -l:libf_console.a -l:libf_conversion.a -l:libf_directory.a -l:libf_file.a -l:libf_memory.a -l:libf_path.a -l:libf_pipe.a -l:libf_print.a -l:libf_rip.a -l:libf_signal.a -l:libf_string.a -l:libf_time.a -l:libf_type_array.a -l:libf_utf.a
 build_libraries_static-individual_thread -l:libf_thread.a
+build_libraries_static-monolithic -l:libfll.a
 
 build_sources_program test-remove.c
 build_sources_program test-remove-date_accessed.c test-remove-date_changed.c test-remove-date_updated.c
index 7065e9971a32159d6926d9b5ee28e9de61f7accd..dec8008b406d5c0e5e5d19ca27fb34e53bef9ed8 100644 (file)
@@ -37,7 +37,9 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc
+build_libraries_shared -lc
+
+build_libraries_static -l:libc.a
 
 build_sources_program fll/level_0/account.c fll/level_0/private-account.c fll/level_0/account/accounts.c
 build_sources_program fll/level_0/color.c fll/level_0/private-color.c fll/level_0/color/common.c
index 6e5494d484289eeb31ac48e7f7177c44f36eb5cb..14913ff02bb8e4271b60745188369831e36af18d 100644 (file)
@@ -37,7 +37,9 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc
+build_libraries_shared -lc
+
+build_libraries_static -l:libc.a
 
 build_sources_program fll/level_0/account.c fll/level_0/private-account.c fll/level_0/account/accounts.c
 build_sources_program fll/level_0/color.c fll/level_0/private-color.c fll/level_0/color/common.c
index 1ba41437eb9ea79e6d378fa89916eb4b4ef9b354..9420cbedc2ffe51f35cc7267b91ef48457d6ad38 100644 (file)
@@ -37,7 +37,9 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc
+build_libraries_shared -lc
+
+build_libraries_static -l:libc.a
 
 build_sources_program fll/level_0/account.c fll/level_0/private-account.c fll/level_0/account/accounts.c
 build_sources_program fll/level_0/color.c fll/level_0/private-color.c fll/level_0/color/common.c
index 780ca1cc5c082fb2840319572874e098088a5df7..387894ffde9be86262fc868cea58f8385031dbf4 100644 (file)
@@ -37,7 +37,9 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc
+build_libraries_shared -lc
+
+build_libraries_static -l:libc.a
 
 build_sources_program fll/level_0/abstruse.c fll/level_0/abstruse/abstruse.c fll/level_0/abstruse/map.c fll/level_0/abstruse/private-abstruse.c
 build_sources_program fll/level_0/color.c fll/level_0/private-color.c fll/level_0/color/common.c
index d3c87268ba148c9ad4dc79e573a358a4e0c5a729..eab763a6f3385621d25231c18d9d0e4a56282b88 100644 (file)
@@ -37,7 +37,9 @@ build_indexer ar
 build_indexer_arguments rcs
 build_language c
 
-build_libraries -lc
+build_libraries_shared -lc
+
+build_libraries_static -l:libc.a
 
 build_sources_program fll/level_0/account.c fll/level_0/private-account.c fll/level_0/account/accounts.c
 build_sources_program fll/level_0/color.c fll/level_0/private-color.c fll/level_0/color/common.c
index 11296e2fd8f65108dba53b98af51fab28744a3a9..6df3a47e2ab1242be8d5ed9ed1d2afae7c65c8e3 100644 (file)
@@ -10,7 +10,7 @@ int
     main
   #else
     kt_main_test__remove
-  #endif
+  #endif // _kt_MOCK_MAIN_NAME
 (const int argc, const f_string_t *argv, const f_string_t *envp) {
 
   kt_remove_main_t data = kt_remove_main_t_initialize;
index d2080fe5aff0824336de9d4074f43ca43f6d62a5..82bb586f2efcb062ea71cdc71e03ebfb998207a9 100644 (file)
@@ -4,7 +4,7 @@
 extern "C" {
 #endif
 
-int main_test__remove(const int argc, const f_string_t *argv, const f_string_t *envp) {
+int kt_main_test__remove(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
   kt_remove_main_t data = kt_remove_main_t_initialize;
 
index 018c6b6b2d002b464afa7a410270c48aa3b71d72..14621c795e78ec848ac2ba1ec103a6a8fb5d23a7 100644 (file)
@@ -32,7 +32,7 @@ extern "C" {
  *   0 on success.
  *   1 on error.
  */
-extern int main_test__remove(const int argc, const f_string_t *argv, const f_string_t *envp);
+extern int kt_main_test__remove(const int argc, const f_string_t *argv, const f_string_t *envp);
 
 #ifdef __cplusplus
 } // extern "C"
index ae5eecd246bd89b048e888df4b4555f9ccb2f6fc..b7d355168e8d4bc18f277e68cf71bcdb1032e9d7 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__date_accessed__date_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 18;
@@ -132,9 +132,6 @@ void test__kt_remove__date_accessed__date_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(stats[type].st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -169,7 +166,7 @@ void test__kt_remove__date_accessed__now_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -187,7 +184,7 @@ void test__kt_remove__date_accessed__now_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("now", 0, 3);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("now", 3);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -289,9 +286,6 @@ void test__kt_remove__date_accessed__now_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -330,7 +324,7 @@ void test__kt_remove__date_accessed__today_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -348,7 +342,7 @@ void test__kt_remove__date_accessed__today_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("today", 0, 5);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("today", 5);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -450,9 +444,6 @@ void test__kt_remove__date_accessed__today_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -491,7 +482,7 @@ void test__kt_remove__date_accessed__tomorrow_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -509,7 +500,7 @@ void test__kt_remove__date_accessed__tomorrow_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("tomorrow", 0, 8);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("tomorrow", 8);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -611,9 +602,6 @@ void test__kt_remove__date_accessed__tomorrow_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -652,7 +640,7 @@ void test__kt_remove__date_accessed__yesterday_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -670,7 +658,7 @@ void test__kt_remove__date_accessed__yesterday_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("yesterday", 0, 9);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("yesterday", 9);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -772,9 +760,6 @@ void test__kt_remove__date_accessed__yesterday_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
index ba95e47cfe773c96c9625186bff9dac56e279731..de4418305770c8331b2faac425b3b14ecfd78dfe 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__date_changed__date_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 18;
@@ -132,9 +132,6 @@ void test__kt_remove__date_changed__date_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(stats[type].st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -169,7 +166,7 @@ void test__kt_remove__date_changed__now_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -187,7 +184,7 @@ void test__kt_remove__date_changed__now_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("now", 0, 3);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("now", 3);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -289,9 +286,6 @@ void test__kt_remove__date_changed__now_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -330,7 +324,7 @@ void test__kt_remove__date_changed__today_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -348,7 +342,7 @@ void test__kt_remove__date_changed__today_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("today", 0, 5);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("today", 5);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -450,9 +444,6 @@ void test__kt_remove__date_changed__today_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -491,7 +482,7 @@ void test__kt_remove__date_changed__tomorrow_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -509,7 +500,7 @@ void test__kt_remove__date_changed__tomorrow_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("tomorrow", 0, 8);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("tomorrow", 8);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -611,9 +602,6 @@ void test__kt_remove__date_changed__tomorrow_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -652,7 +640,7 @@ void test__kt_remove__date_changed__yesterday_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -670,7 +658,7 @@ void test__kt_remove__date_changed__yesterday_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("yesterday", 0, 9);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("yesterday", 9);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -772,9 +760,6 @@ void test__kt_remove__date_changed__yesterday_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
index 0428aaf4de35db3e9976a5e27791ae3121dd6c5c..abac780f4bf7f35a515088911ff8ebe42b9491e6 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__date_updated__date_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 18;
@@ -132,9 +132,6 @@ void test__kt_remove__date_updated__date_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(stats[type].st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -169,7 +166,7 @@ void test__kt_remove__date_updated__now_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -187,7 +184,7 @@ void test__kt_remove__date_updated__now_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("now", 0, 3);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("now", 3);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -289,9 +286,6 @@ void test__kt_remove__date_updated__now_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -330,7 +324,7 @@ void test__kt_remove__date_updated__today_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -348,7 +342,7 @@ void test__kt_remove__date_updated__today_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("today", 0, 5);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("today", 5);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -450,9 +444,6 @@ void test__kt_remove__date_updated__today_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -491,7 +482,7 @@ void test__kt_remove__date_updated__tomorrow_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -509,7 +500,7 @@ void test__kt_remove__date_updated__tomorrow_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("tomorrow", 0, 8);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("tomorrow", 8);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -611,9 +602,6 @@ void test__kt_remove__date_updated__tomorrow_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -652,7 +640,7 @@ void test__kt_remove__date_updated__yesterday_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -670,7 +658,7 @@ void test__kt_remove__date_updated__yesterday_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("yesterday", 0, 9);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("yesterday", 9);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -772,9 +760,6 @@ void test__kt_remove__date_updated__yesterday_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
index b0dd8d81ec037affea1b7ae5f297a2ec18a3759c..a0a16200741b3d1ac6431a1b464192a73b3a37e5 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__directory_no_args__one_empty_exists_link(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   struct stat stat_directory;
 
@@ -27,9 +27,6 @@ void test__kt_remove__directory_no_args__one_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -58,9 +55,6 @@ void test__kt_remove__directory_no_args__one_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -89,9 +83,6 @@ void test__kt_remove__directory_no_args__one_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -115,7 +106,7 @@ void test__kt_remove__directory_no_args__one_empty_exists_link_not(void **state)
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   struct stat stat_directory;
 
@@ -130,9 +121,6 @@ void test__kt_remove__directory_no_args__one_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -161,9 +149,6 @@ void test__kt_remove__directory_no_args__one_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -192,9 +177,6 @@ void test__kt_remove__directory_no_args__one_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -218,7 +200,7 @@ void test__kt_remove__directory_no_args__one_empty_exists_not(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   {
     const f_string_t argv[] = { "mocked_main", target.string, 0 };
@@ -256,7 +238,7 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link(void **state)
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -275,9 +257,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link(void **state)
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -309,9 +288,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link(void **state)
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -343,9 +319,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link(void **state)
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -369,8 +342,8 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t child = macro_f_string_static_t_initialize_1("child", 0, 5);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t child = macro_f_string_static_t_initialize_3("child", 5);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -389,9 +362,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Top directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -413,9 +383,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child);
@@ -451,9 +418,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Top directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -475,9 +439,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child);
@@ -513,9 +474,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Top directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -537,9 +495,6 @@ void test__kt_remove__directory_no_args__one_empty_not_exists_link_not(void **st
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child);
@@ -567,8 +522,8 @@ void test__kt_remove__directory_no_args__two_empty_exists_and_not(void **state)
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t target_also = macro_f_string_static_t_initialize_1("also/remove", 0, 11);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t target_also = macro_f_string_static_t_initialize_3("also/remove", 11);
 
   struct stat stat_directory;
 
@@ -623,8 +578,8 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t target_also = macro_f_string_static_t_initialize_1("also/remove", 0, 11);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t target_also = macro_f_string_static_t_initialize_3("also/remove", 11);
 
   struct stat stat_directory;
 
@@ -639,9 +594,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -659,9 +611,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -690,9 +639,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -710,9 +656,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -741,9 +684,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -761,9 +701,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -787,8 +724,8 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t target_also = macro_f_string_static_t_initialize_1("also/remove", 0, 11);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t target_also = macro_f_string_static_t_initialize_3("also/remove", 11);
 
   struct stat stat_directory;
 
@@ -803,9 +740,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -823,9 +757,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -854,9 +785,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -874,9 +802,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -905,9 +830,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -925,9 +847,6 @@ void test__kt_remove__directory_no_args__two_empty_exists_link_not(void **state)
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Directory processing.
     will_return(__wrap_f_directory_empty, F_true);
@@ -951,8 +870,8 @@ void test__kt_remove__directory_no_args__two_empty_exists_not(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t target_also = macro_f_string_static_t_initialize_1("also/remove", 0, 11);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t target_also = macro_f_string_static_t_initialize_3("also/remove", 11);
 
   {
     const f_string_t argv[] = { "mocked_main", target.string, target_also.string, 0 };
index 8b9fb2e6df1fd88febb2dca3cd4d01a52d54bf18..2839598114b9bb17bf87b625d739635ca17d4781 100644 (file)
@@ -12,8 +12,8 @@ void test__kt_remove__directory_recurse_simple__one_child_one_exists_link(void *
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t child_1 = macro_f_string_static_t_initialize_1("child_1", 0, 7);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t child_1 = macro_f_string_static_t_initialize_3("child_1", 7);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -32,9 +32,6 @@ void test__kt_remove__directory_recurse_simple__one_child_one_exists_link(void *
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Top directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -56,9 +53,6 @@ void test__kt_remove__directory_recurse_simple__one_child_one_exists_link(void *
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child_1);
@@ -86,8 +80,8 @@ void test__kt_remove__directory_recurse_simple__one_child_one_exists_link_not(vo
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t child_1 = macro_f_string_static_t_initialize_1("child_1", 0, 7);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t child_1 = macro_f_string_static_t_initialize_3("child_1", 7);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -106,9 +100,6 @@ void test__kt_remove__directory_recurse_simple__one_child_one_exists_link_not(vo
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Target Directory pre-processing, begin, perform directory listing action.
     will_return(__wrap_f_directory_empty, F_false);
@@ -130,9 +121,6 @@ void test__kt_remove__directory_recurse_simple__one_child_one_exists_link_not(vo
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child_1);
@@ -160,9 +148,9 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link(void *
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t child_1 = macro_f_string_static_t_initialize_1("child_1", 0, 7);
-  const f_string_static_t child_2 = macro_f_string_static_t_initialize_1("child_2", 0, 7);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t child_1 = macro_f_string_static_t_initialize_3("child_1", 7);
+  const f_string_static_t child_2 = macro_f_string_static_t_initialize_3("child_2", 7);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -181,9 +169,6 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link(void *
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Top directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -205,9 +190,6 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link(void *
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child_1);
@@ -225,9 +207,6 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link(void *
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child_2);
@@ -255,9 +234,9 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link_not(vo
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
-  const f_string_static_t child_1 = macro_f_string_static_t_initialize_1("child_1", 0, 7);
-  const f_string_static_t child_2 = macro_f_string_static_t_initialize_1("child_2", 0, 7);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
+  const f_string_static_t child_1 = macro_f_string_static_t_initialize_3("child_1", 7);
+  const f_string_static_t child_2 = macro_f_string_static_t_initialize_3("child_2", 7);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -276,9 +255,6 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link_not(vo
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Top directory processing.
     will_return(__wrap_f_directory_empty, F_false); // kt_remove_flag_operate_empty_d is set.
@@ -300,9 +276,6 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link_not(vo
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child_1);
@@ -320,9 +293,6 @@ void test__kt_remove__directory_recurse_simple__one_child_two_exists_link_not(vo
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_file_remove, F_okay);
 
     will_return(__wrap_fl_directory_do, &child_2);
index b41c300a9f90033d47ee3be7e90f46cb4cbd8032..a51b016fd6d3f4778ac995623396b5180254dbba 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_one_exists_li
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target_full = macro_f_string_static_t_initialize_1("parent_1/to_remove", 0, 18);
+  const f_string_static_t target_full = macro_f_string_static_t_initialize_3("parent_1/to_remove", 18);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -31,9 +31,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_one_exists_li
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Target processing.
     will_return(__wrap_f_file_remove, F_okay);
@@ -43,9 +40,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_one_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_directory_empty, F_true);
 
     // Parent 1 processing.
@@ -62,7 +56,7 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_one_exists_li
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target_full = macro_f_string_static_t_initialize_1("parent_1/to_remove", 0, 18);
+  const f_string_static_t target_full = macro_f_string_static_t_initialize_3("parent_1/to_remove", 18);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -81,9 +75,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_one_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Target processing.
     will_return(__wrap_f_file_remove, F_okay);
@@ -93,9 +84,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_one_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_directory_empty, F_true);
 
     // Parent 1 processing.
@@ -112,7 +100,7 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target_full = macro_f_string_static_t_initialize_1("parent_2/parent_1/to_remove", 0, 18);
+  const f_string_static_t target_full = macro_f_string_static_t_initialize_3("parent_2/parent_1/to_remove", 18);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -131,9 +119,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Target processing.
     will_return(__wrap_f_file_remove, F_okay);
@@ -143,9 +128,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_directory_empty, F_true);
 
     // Parent 1 processing.
@@ -156,9 +138,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_directory_empty, F_true);
 
     // Parent 2 processing.
@@ -175,7 +154,7 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target_full = macro_f_string_static_t_initialize_1("parent_2/parent_1/to_remove", 0, 18);
+  const f_string_static_t target_full = macro_f_string_static_t_initialize_3("parent_2/parent_1/to_remove", 18);
 
   struct stat stat_directory;
   struct stat stat_regular;
@@ -194,9 +173,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_regular);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // Target processing.
     will_return(__wrap_f_file_remove, F_okay);
@@ -206,9 +182,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_directory_empty, F_true);
 
     // Parent 1 processing.
@@ -219,9 +192,6 @@ void test__kt_remove__directory_tree_simple__one_child_none_parent_two_exists_li
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stat_directory);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
     will_return(__wrap_f_directory_empty, F_true);
 
     // Parent 2 processing.
index 559a2c80cc54890a259fba0f4bad56a0240331b6..6d868837c019d4f17a7f59b5c5ed8d1540dafbf2 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__epochtime__accessed_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t params_total = 2;
   const uint8_t types_total = 8;
@@ -137,9 +137,6 @@ void test__kt_remove__epochtime__accessed_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(stats[type].st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -174,7 +171,7 @@ void test__kt_remove__epochtime__changed_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t params_total = 2;
   const uint8_t types_total = 8;
@@ -299,9 +296,6 @@ void test__kt_remove__epochtime__changed_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(stats[type].st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -336,7 +330,7 @@ void test__kt_remove__epochtime__updated_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t params_total = 2;
   const uint8_t types_total = 8;
@@ -461,9 +455,6 @@ void test__kt_remove__epochtime__updated_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(stats[type].st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
index 89d599eb7981cdc980e3b9e2b0cbeb76f905b4a7..f38471b1454e7a7291664b0f342c3de5e2d93dcb 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__file_mode__different_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t modes_total = 10; // For both modes and params.
@@ -83,9 +83,6 @@ void test__kt_remove__file_mode__different_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(statistics.st_mode));
           will_return(__wrap_f_file_stat, &statistics);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(statistics.st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -121,7 +118,7 @@ void test__kt_remove__file_mode__same_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t modes_total = 10; // For both modes and params.
@@ -192,9 +189,6 @@ void test__kt_remove__file_mode__same_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(statistics.st_mode));
           will_return(__wrap_f_file_stat, &statistics);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(statistics.st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -230,7 +224,7 @@ void test__kt_remove__file_mode__similar_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t modes_total = 10; // For both modes and params.
@@ -301,9 +295,6 @@ void test__kt_remove__file_mode__similar_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(statistics.st_mode));
           will_return(__wrap_f_file_stat, &statistics);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(statistics.st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
@@ -338,7 +329,7 @@ void test__kt_remove__file_mode__not_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t modes_total = 10; // For both modes and params.
@@ -409,9 +400,6 @@ void test__kt_remove__file_mode__not_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(statistics.st_mode));
           will_return(__wrap_f_file_stat, &statistics);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (macro_f_file_type_is_directory(statistics.st_mode)) {
             will_return(__wrap_f_directory_empty, F_true);
index 408d7c8ba61fdb22826c4f9e314d65e0a2bf046b..3b360fb438e2052fc3a97360ddeb1d856bc4cd70 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__file_type__works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t total = 8;
 
@@ -55,9 +55,6 @@ void test__kt_remove__file_type__works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[i].st_mode));
         will_return(__wrap_f_file_stat, &stats[i]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[i].st_mode)) {
 
index 19cfbe94ea860d1f5b3726c09913966bbd222d33..ded307b0019e9edab3505e0d3472a755f43a84b8 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__force__works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t total = 8;
 
index 368694f038a6ea2c20dcad9697d231207fa163bf..bd9d0bf7c77a9f4e485d9a66f7c3e13ac6a5df01 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__group__name_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
   const f_string_t argv[] = { "mocked_main", target.string, "-" KT_REMOVE_short_group_s, "some_name", 0 };
 
   const uint8_t total = 4;
@@ -42,9 +42,6 @@ void test__kt_remove__group__name_works(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stats[type]);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     if (macro_f_file_type_is_directory(stats[type].st_mode)) {
       will_return(__wrap_f_directory_empty, F_true);
index 69ae8bbcee37059b89a2f3069f6cfa4360f5091f..d93ab48802280f5e502185cf5b29243881e347da 100644 (file)
@@ -25,9 +25,6 @@ void test__kt_remove__regular_no_args__one_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -48,9 +45,6 @@ void test__kt_remove__regular_no_args__one_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -71,9 +65,6 @@ void test__kt_remove__regular_no_args__one_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -102,9 +93,6 @@ void test__kt_remove__regular_no_args__one_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -125,9 +113,6 @@ void test__kt_remove__regular_no_args__one_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -148,9 +133,6 @@ void test__kt_remove__regular_no_args__one_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -268,9 +250,6 @@ void test__kt_remove__regular_no_args__two_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -280,9 +259,6 @@ void test__kt_remove__regular_no_args__two_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -303,9 +279,6 @@ void test__kt_remove__regular_no_args__two_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -315,9 +288,6 @@ void test__kt_remove__regular_no_args__two_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -338,9 +308,6 @@ void test__kt_remove__regular_no_args__two_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -350,9 +317,6 @@ void test__kt_remove__regular_no_args__two_exists_link(void **state) {
     will_return(__wrap_f_file_is, F_true); // A link, kt_remove_flag_operate_link_d is set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -381,9 +345,6 @@ void test__kt_remove__regular_no_args__two_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -393,9 +354,6 @@ void test__kt_remove__regular_no_args__two_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -416,9 +374,6 @@ void test__kt_remove__regular_no_args__two_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -428,9 +383,6 @@ void test__kt_remove__regular_no_args__two_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -451,9 +403,6 @@ void test__kt_remove__regular_no_args__two_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
@@ -463,9 +412,6 @@ void test__kt_remove__regular_no_args__two_exists_link_not(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &statistics);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     // This will fail if f_file_remove() is not called, therefore success here means f_file_remove has been called.
     will_return(__wrap_f_file_remove, F_okay);
index b7aed04cce26a29d3a1ce5346d634ceca0ccb3b4..2f55c6e3f199801c5be2a96fd3b622ebd0a4bd67 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__time__accessed_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t params_total = 2;
   const uint8_t types_total = 8;
@@ -139,9 +139,6 @@ void test__kt_remove__time__accessed_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (param) {
             will_return(__wrap_f_time_clock_get, &time_spec_clocks);
@@ -181,7 +178,7 @@ void test__kt_remove__time__changed_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t params_total = 2;
   const uint8_t types_total = 8;
@@ -308,9 +305,6 @@ void test__kt_remove__time__changed_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (param) {
             will_return(__wrap_f_time_clock_get, &time_spec_clocks);
@@ -350,7 +344,7 @@ void test__kt_remove__time__updated_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t params_total = 2;
   const uint8_t types_total = 8;
@@ -477,9 +471,6 @@ void test__kt_remove__time__updated_works(void **state) {
           will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
           will_return(__wrap_f_file_stat, &stats[type]);
           will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
           if (param) {
             will_return(__wrap_f_time_clock_get, &time_spec_clocks);
index 876a5fc461ad301ffd4914c78bed33888390b673..28e25d1fa474103d9bd6715c38530974199188b6 100644 (file)
@@ -13,7 +13,7 @@ void test__kt_remove__unix__accessed_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -31,7 +31,7 @@ void test__kt_remove__unix__accessed_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("172800", 0, 6);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("172800", 6);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -131,9 +131,6 @@ void test__kt_remove__unix__accessed_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -167,7 +164,7 @@ void test__kt_remove__unix__changed_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -185,7 +182,7 @@ void test__kt_remove__unix__changed_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("172800", 0, 6);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("172800", 6);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -285,9 +282,6 @@ void test__kt_remove__unix__changed_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
-        will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
@@ -321,7 +315,7 @@ void test__kt_remove__unix__updated_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 0;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
 
   const uint8_t types_total = 8;
   const uint8_t dates_total = 24;
@@ -339,7 +333,7 @@ void test__kt_remove__unix__updated_works(void **state) {
   stats[6].st_mode = F_file_mode_all_d | F_file_type_socket_d;
   stats[7].st_mode = F_file_mode_all_d & ~S_IFMT;
 
-  const f_string_static_t parameter = macro_f_string_static_t_initialize_1("172800", 0, 6);
+  const f_string_static_t parameter = macro_f_string_static_t_initialize_3("172800", 6);
 
   const f_string_static_t operators[] = {
     kt_remove_date_symbol_equal_s,
@@ -439,9 +433,6 @@ void test__kt_remove__unix__updated_works(void **state) {
         will_return(__wrap_f_file_is, macro_f_file_type_is_link(stats[type].st_mode));
         will_return(__wrap_f_file_stat, &stats[type]);
         will_return(__wrap_f_file_stat, F_okay);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
-          will_return(__wrap_f_file_access, F_true);
 
         if (macro_f_file_type_is_directory(stats[type].st_mode)) {
           will_return(__wrap_f_directory_empty, F_true);
index 54f89f1a33f77eb39b60d2a6cc961d933179cde4..292aa55160b55a45f41d89f4486cb16aa417fb9c 100644 (file)
@@ -12,7 +12,7 @@ void test__kt_remove__user__different_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
   const f_string_t argv[] = { "mocked_main", target.string, "-" KT_REMOVE_short_different_s, 0 };
 
   const uint8_t total = 4;
@@ -42,9 +42,6 @@ void test__kt_remove__user__different_works(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stats[type]);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     if (macro_f_file_type_is_directory(stats[type].st_mode)) {
       will_return(__wrap_f_directory_empty, F_true);
@@ -76,7 +73,7 @@ void test__kt_remove__user__name_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
   const f_string_t argv[] = { "mocked_main", target.string, "-" KT_REMOVE_short_user_s, "some_name", 0 };
 
   const uint8_t total = 4;
@@ -106,9 +103,6 @@ void test__kt_remove__user__name_works(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stats[type]);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     if (macro_f_file_type_is_directory(stats[type].st_mode)) {
       will_return(__wrap_f_directory_empty, F_true);
@@ -140,7 +134,7 @@ void test__kt_remove__user__same_works(void **state) {
   mock_unwrap = 0;
   mock_unwrap_f_time_clock_get = 1;
 
-  const f_string_static_t target = macro_f_string_static_t_initialize_1("to_remove", 0, 9);
+  const f_string_static_t target = macro_f_string_static_t_initialize_3("to_remove", 9);
   const f_string_t argv[] = { "mocked_main", target.string, "-" KT_REMOVE_short_same_s, 0 };
 
   const uint8_t total = 4;
@@ -170,9 +164,6 @@ void test__kt_remove__user__same_works(void **state) {
     will_return(__wrap_f_file_is, F_false); // Not a link, kt_remove_flag_operate_link_d is not set.
     will_return(__wrap_f_file_stat, &stats[type]);
     will_return(__wrap_f_file_stat, F_okay);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
-    will_return(__wrap_f_file_access, F_true);
 
     if (macro_f_file_type_is_directory(stats[type].st_mode)) {
       will_return(__wrap_f_directory_empty, F_true);