]> Kevux Git Server - fll/commitdiff
Bugfix: Fix some of the outdated unit tests.
authorKevin Day <thekevinday@gmail.com>
Sat, 14 Jan 2023 23:31:20 +0000 (17:31 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 14 Jan 2023 23:33:32 +0000 (17:33 -0600)
The unit tests are out of date.
Fix a few of the obvious problems.
There will be more problems to solve that are not solved in this commit.

33 files changed:
level_0/f_capability/tests/unit/c/test-capability-ambient_get.c
level_0/f_capability/tests/unit/c/test-capability-file_descriptor_get.c
level_0/f_capability/tests/unit/c/test-capability-file_descriptor_set.c
level_0/f_capability/tests/unit/c/test-capability-file_get.c
level_0/f_capability/tests/unit/c/test-capability-file_set.c
level_0/f_capability/tests/unit/c/test-capability-owner_set.c
level_0/f_capability/tests/unit/c/test-capability-security_bits_set.c
level_0/f_console/tests/unit/c/test-console-identify.c
level_0/f_file/tests/unit/c/test-file-clone.c
level_0/f_file/tests/unit/c/test-file-copy.c
level_0/f_file/tests/unit/c/test-file-create.c
level_0/f_file/tests/unit/c/test-file-create_at.c
level_0/f_file/tests/unit/c/test-file-create_device.c
level_0/f_file/tests/unit/c/test-file-create_device_at.c
level_0/f_file/tests/unit/c/test-file-create_node.c
level_0/f_file/tests/unit/c/test-file-create_node_at.c
level_0/f_file/tests/unit/c/test-file-flush.c
level_0/f_file/tests/unit/c/test-file-open.c
level_0/f_file/tests/unit/c/test-file-open_at.c
level_0/f_file/tests/unit/c/test-file-stream_open.c
level_0/f_signal/tests/unit/c/test-signal-queue.c
level_0/f_socket/tests/unit/c/test-socket-accept.c
level_0/f_socket/tests/unit/c/test-socket-disconnect.c
level_0/f_socket/tests/unit/c/test-socket-listen.c
level_0/f_status_string/tests/unit/c/test-status_string-to.c
level_0/f_thread/tests/unit/c/test-thread-clock_get_id.c
level_0/f_thread/tests/unit/c/test-thread-join.c
level_0/f_thread/tests/unit/c/test-thread-join_timed.c
level_0/f_thread/tests/unit/c/test-thread-join_try.c
level_0/f_thread/tests/unit/c/test-thread-scheduler_parameter_get.c
level_0/f_thread/tests/unit/c/test-thread-semaphore_create.c
level_0/f_thread/tests/unit/c/test-thread-signal_queue.c
level_2/fll_status_string/tests/unit/c/test-status_string-from.c

index 317292bdd70f94d50721d90646878d4f48ae1047..395fcd796e5ac2fecf97be54a1538e91687d56e6 100644 (file)
@@ -16,7 +16,7 @@ void test__f_capability_ambient_get__fails(void **state) {
 
       const f_status_t status = f_capability_ambient_get(value, &ambient);
 
-      assert_int_equal(F_status_set_fine(status), F_supported_not);
+      assert_int_equal(F_status_set_fine(status), F_support_not);
       assert_int_equal(ambient, -1);
     }
   #endif // !defined(_di_libcap_) && !defined(_libcap_legacy_only_)
index c531bf9a8c21a256120b12f672b812055b92fda8..768accdd6b22c62f50bcf40b2a95c9f5b77c90f8 100644 (file)
@@ -31,7 +31,7 @@ void test__f_capability_file_descriptor_get__fails(void **state) {
       F_memory_not,
       F_directory_not,
       F_prohibited,
-      F_supported_not,
+      F_support_not,
       F_failure,
     };
 
index ef2a75b37aac9a04bec635fef4caae88d6fb6bf0..9c81a2ddfca32c7bd17721a0e0e658e970c1e7d4 100644 (file)
@@ -31,7 +31,7 @@ void test__f_capability_file_descriptor_set__fails(void **state) {
       F_memory_not,
       F_directory_not,
       F_prohibited,
-      F_supported_not,
+      F_support_not,
       F_failure,
     };
 
index 79ad9aa32af2865c639d5f6f7be9eb95810b7a88..330c7ba6ccbbcc40e5eee3c81bf94e184146a42c 100644 (file)
@@ -31,7 +31,7 @@ void test__f_capability_file_get__fails(void **state) {
       F_memory_not,
       F_directory_not,
       F_prohibited,
-      F_supported_not,
+      F_support_not,
       F_failure,
     };
 
index 781e273e069977a63f3d8a37bc381556a18e4c56..230d9d6308d678d412b0a7c9d83707c66886d5a8 100644 (file)
@@ -31,7 +31,7 @@ void test__f_capability_file_set__fails(void **state) {
       F_memory_not,
       F_directory_not,
       F_prohibited,
-      F_supported_not,
+      F_support_not,
       F_failure,
     };
 
index 74334f2defca15e723de276ff3c75408c0386d60..2f62f8dcd61d9dbd5149f0578f6b1f97b2b884c2 100644 (file)
@@ -31,7 +31,7 @@ void test__f_capability_owner_set__fails(void **state) {
       F_memory_not,
       F_directory_not,
       F_prohibited,
-      F_supported_not,
+      F_support_not,
       F_failure,
     };
 
index e0436993e20d77a56a17233ee462353768c1cf7d..7cd8cbaffbba365aeeff59b3a6d839b7e27e1765 100644 (file)
@@ -30,7 +30,7 @@ void test__f_capability_security_bits_set__fails(void **state) {
       F_memory_not,
       F_directory_not,
       F_prohibited,
-      F_supported_not,
+      F_support_not,
       F_failure,
     };
 
index 07dae402d4d6888016c4ee4379e7ae0cc370a5f7..6d57eea7667b37023f7b4938f9b6e596fbca5931 100644 (file)
@@ -18,7 +18,7 @@ void test__f_console_identify__parameter_checking(void **state) {
 
 void test__f_console_identify__works(void **state) {
 
-  f_console_id_t id = f_console_id_t_initialize;
+  f_console_result_t id = f_console_result_t_initialize;
 
   {
     const f_string_t input = f_string_t_initialize;
index 88e56b06f4d8d4e995e8c4ff3425de93abdbcfd2..0e04d54519f6962320870ae1887d197999cbb5e4 100644 (file)
@@ -367,7 +367,7 @@ void test__f_file_clone__fails_for_other(void **state) {
 
       const f_status_t status = f_file_clone(path, path, 0, f_file_stat_flag_exclusive_e);
 
-      assert_int_equal(F_status_set_fine(status), F_supported_not);
+      assert_int_equal(F_status_set_fine(status), F_support_not);
     } // for
   }
 }
@@ -453,7 +453,7 @@ void test__f_file_clone__fails_for_regular(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
@@ -755,7 +755,7 @@ void test__f_file_clone__fails_for_regular(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
@@ -837,7 +837,7 @@ void test__f_file_clone__fails_for_regular(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
index d148adc7b42a3e777b4d57402b83949357c63388..1de16acfb19e7b0c48b2be80f35e97342a99672d 100644 (file)
@@ -819,7 +819,7 @@ void test__f_file_copy__fails_for_regular(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
@@ -997,7 +997,7 @@ void test__f_file_copy__fails_for_regular(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
@@ -1080,7 +1080,7 @@ void test__f_file_copy__fails_for_regular(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
index efd8a3294b788d690f102fd2dbf18df60c788fa5..b1de61f031e21f2520bbe3f906e9dc4892dc7b23 100644 (file)
@@ -50,7 +50,7 @@ void test__f_file_create__fails(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
index d92584020d18bc04f61c21c7f58b495f70919454..056fe85225bdca49276d730853381946ef915d81 100644 (file)
@@ -52,7 +52,7 @@ void test__f_file_create_at__fails(void **state) {
       F_memory_not,
       F_space_not,
       F_file_type_not_directory,
-      F_supported_not,
+      F_support_not,
       F_number_overflow,
       F_prohibited,
       F_read_only,
index 61d4c70a1759d99675897a4b3e230165ddd07362..0ffe1532f3d218c6b38029fe2f6dee0f05b4abeb 100644 (file)
@@ -93,7 +93,7 @@ void test__f_file_create_device__returns_supported_not(void **state) {
 
       const f_status_t status = f_file_create_device(path, modes[i], 0, 0);
 
-      assert_int_equal(F_status_set_fine(status), F_supported_not);
+      assert_int_equal(F_status_set_fine(status), F_support_not);
     } // for
   }
 }
index a97b98414cc69aef2b9d856dff769bc86b3e8c5b..970d615a76a9e71945deaa8eee1542236d3d2e5a 100644 (file)
@@ -95,7 +95,7 @@ void test__f_file_create_device_at__returns_supported_not(void **state) {
 
       const f_status_t status = f_file_create_device_at(0, path, modes[i], 0, 0);
 
-      assert_int_equal(F_status_set_fine(status), F_supported_not);
+      assert_int_equal(F_status_set_fine(status), F_support_not);
     } // for
   }
 }
index a5c369bb6aae3d1345c88a8d98898cbd0faf6891..b92549ad517e3f7753c417cbaa44e5f068ef484b 100644 (file)
@@ -93,7 +93,7 @@ void test__f_file_create_node__returns_supported_not(void **state) {
 
       const f_status_t status = f_file_create_node(path, modes[i], 0);
 
-      assert_int_equal(F_status_set_fine(status), F_supported_not);
+      assert_int_equal(F_status_set_fine(status), F_support_not);
     } // for
   }
 }
index 4b44c2252d799bb7cd9e9fda516d17b90822b484..952984d97859506ed7c9a06fdc6431b921ee13ca 100644 (file)
@@ -95,7 +95,7 @@ void test__f_file_create_node_at__returns_supported_not(void **state) {
 
       const f_status_t status = f_file_create_node_at(0, path, modes[i], 0);
 
-      assert_int_equal(F_status_set_fine(status), F_supported_not);
+      assert_int_equal(F_status_set_fine(status), F_support_not);
     } // for
   }
 }
index cc5a2ae06bc4c49b1077f765e7573a9ea43ee6c3..7641af54203bb362a467ee24d16cc392eb0c62f7 100644 (file)
@@ -20,10 +20,10 @@ void test__f_file_flush__fails(void **state) {
   f_status_t statuss[] = {
     F_file_descriptor,
     F_filesystem_quota_block,
-    F_supported_not,
+    F_support_not,
     F_input_output,
     F_space_not,
-    F_supported_not,
+    F_support_not,
     F_file_synchronize,
   };
 
index c31d3c9f46633c16676079432b7f748113f323c7..a2cbef05774aa155e127727180958dd638ec2567 100644 (file)
@@ -49,7 +49,7 @@ void test__f_file_open__fails(void **state) {
     F_memory_not,
     F_space_not,
     F_file_type_not_directory,
-    F_supported_not,
+    F_support_not,
     F_number_overflow,
     F_prohibited,
     F_read_only,
index 7f2df1a4835e19698b9c424749a377f27a7cbbbb..8111e5780b4b6c833588d28086f46f09643849c7 100644 (file)
@@ -51,7 +51,7 @@ void test__f_file_open_at__fails(void **state) {
     F_memory_not,
     F_space_not,
     F_file_type_not_directory,
-    F_supported_not,
+    F_support_not,
     F_number_overflow,
     F_prohibited,
     F_read_only,
index aa3aa29c653c913e88959d21f214e87ed9255aa2..284f6c2c19e2c27ebcd26d5ef246296bb5cff5e6 100644 (file)
@@ -52,7 +52,7 @@ void test__f_file_stream_open__fails(void **state) {
     F_read_only,
     F_busy,
     F_directory,
-    F_supported_not,
+    F_support_not,
     F_number_overflow,
     F_failure,
   };
index 34a575e117d0c864074a06553b9ee6c6d2c2e57a..98a44abd9c93a77f27fece4d1f6e38da68a9e27c 100644 (file)
@@ -21,7 +21,7 @@ void test__f_signal_queue__fails(void **state) {
 
   f_status_t statuss[] = {
     F_resource_not,
-    F_supported_not,
+    F_support_not,
     F_parameter,
     F_found_not,
     F_failure,
index 2484cc9ee92d705ee3408818354a484fece2be90..e4ec32423e026e0731590048cd115cb32db4f8e9 100644 (file)
@@ -58,7 +58,7 @@ void test__f_socket_accept__fails(void **state) {
     F_stream_not,
     F_protocol,
     F_prohibited,
-    F_supported_not,
+    F_support_not,
     F_protocol_not,
     F_time_out,
     F_block,
index 79d20a5b7852b8d6e5155c4ffdd1259c025e1dd4..771ebb5f16cebbb1f0ed87f4bae4c60c1425bdfb 100644 (file)
@@ -101,7 +101,7 @@ void test__f_socket_disconnect__fails_for_close_unknown(void **state) {
 
     const f_status_t status = f_socket_disconnect(&socket, 100);
 
-    assert_int_equal(status, F_status_set_error(F_supported_not));
+    assert_int_equal(status, F_status_set_error(F_support_not));
     assert_int_equal(socket.id, 1);
   }
 }
index f8cdc04dbba87d6565f7e2602b674bf07736b7c8..fcc57b9b8951e6b47ba456f216bf6ed63f640a0a 100644 (file)
@@ -21,7 +21,7 @@ void test__f_socket_listen__fails(void **state) {
     F_busy_address,
     F_file_descriptor,
     F_socket_not,
-    F_supported_not,
+    F_support_not,
     F_failure,
   };
 
index 9e1064d61ec6c211a354b066d57df4c4cae0670a..b94a6c277a9c376056b96c9715b677f26b019623 100644 (file)
@@ -354,7 +354,7 @@ void test__f_status_string_to__works(void **state) {
     F_success,
     F_success_not,
     F_supported,
-    F_supported_not,
+    F_support_not,
     F_syntax,
     F_syntax_not,
     F_terminate,
index 8005476633c7fe52d30503646701576b2cda504a..aa3c6d8e5f9e0acc44e1a4abf4e0d1bb9f0edec1 100644 (file)
@@ -19,7 +19,7 @@ void test__f_thread_clock_get_id__fails(void **state) {
   };
 
   f_status_t statuss[] = {
-    F_supported_not,
+    F_support_not,
     F_found_not,
     F_failure,
   };
index da95ae52a5b8788a68756a40c145f8f422c60267..9ef0203f986204226134c2630ffb167c7846c8b4 100644 (file)
@@ -20,7 +20,7 @@ void test__f_thread_join__fails(void **state) {
   f_status_t statuss[] = {
     F_deadlock,
     F_parameter,
-    F_supported_not,
+    F_support_not,
     F_found_not,
     F_failure,
   };
index 91c23a993e3299b5d23f514a6362d73c8e71c221..98721259de5a38848c340a00b65e9ee6c0d31fa6 100644 (file)
@@ -26,7 +26,7 @@ void test__f_thread_join_timed__fails(void **state) {
     F_busy,
     F_status_set_error(F_deadlock),
     F_status_set_error(F_parameter),
-    F_status_set_error(F_supported_not),
+    F_status_set_error(F_support_not),
     F_status_set_error(F_found_not),
     F_time,
     F_status_set_error(F_failure),
index 9c3a3810a21fb311d8c04f1821e5c4320419e693..b948a582d740c7b921b0ce9346adcac9a6fce1fc 100644 (file)
@@ -22,7 +22,7 @@ void test__f_thread_join_try__fails(void **state) {
     F_busy,
     F_status_set_error(F_deadlock),
     F_status_set_error(F_parameter),
-    F_status_set_error(F_supported_not),
+    F_status_set_error(F_support_not),
     F_status_set_error(F_found_not),
     F_status_set_error(F_failure),
   };
index c8011f805b18533843e36a9d24d5781efebcf96a..8fb622f38cb578de9fbc9f41fd9e786a45440bf9 100644 (file)
@@ -19,7 +19,7 @@ void test__f_thread_scheduler_parameter_get__fails(void **state) {
   };
 
   f_status_t statuss[] = {
-    F_supported_not,
+    F_support_not,
     F_failure,
   };
 
index a3223fb1965d7c51d7ff91b63549606e93b940af..1cff3f2551ffd179248d6c5c3dfa1f5849256107 100644 (file)
@@ -19,7 +19,7 @@ void test__f_thread_semaphore_create__fails(void **state) {
 
   f_status_t statuss[] = {
     F_parameter,
-    F_supported_not,
+    F_support_not,
     F_failure,
   };
 
index 82aa96780e04927cfbcd71b13b17a043ef616434..5adbeab69656de8bb72d461ca6ca8eda8a47427b 100644 (file)
@@ -29,7 +29,7 @@ void test__f_thread_signal_queue__fails(void **state) {
 
       f_status_t statuss[] = {
         F_resource_not,
-        F_supported_not,
+        F_support_not,
         F_parameter,
         F_found_not,
         F_failure,
index d23bbd3a4a6fc6c6d951363bab532f4d48e98ced..6607be48b867c4b74ae64d203efd1ea813fadb1a 100644 (file)
@@ -370,7 +370,7 @@ void test__fll_status_string_from__works(void **state) {
     F_success,
     F_success_not,
     F_supported,
-    F_supported_not,
+    F_support_not,
     F_syntax,
     F_syntax_not,
     F_terminate,