Skip to contentSkip to conversation

Add argv_insert_head__empty_argv__head_only to argv tests

PATCH In review Arne Schwabe 2 participants 2 messages Dec 8, 2021 – Dec 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add argv_insert_head__empty_argv__head_only to argv tests

The unit test argv_insert_head__empty_argv__head_only was defined but never used. Add it to the array of unit tests.

---
 tests/unit_tests/openvpn/test_argv.c | 1 +
 1 file changed, 1 insertion(+)
tests/unit_tests/openvpn/test_argv.c +1 -0
index e686adcb5..1b18ac0d4 100644
@@ -266,6 +266,7 @@ main(void)
         cmocka_unit_test(argv_str__empty_argv__empty_output),
         cmocka_unit_test(argv_str__multiple_argv__correct_output),
         cmocka_unit_test(argv_insert_head__non_empty_argv__head_added),
+        cmocka_unit_test(argv_insert_head__empty_argv__head_only),
     };
 
     return cmocka_run_group_tests_name("argv", tests, NULL, NULL);
Signature · 1 line
2.33.0
Acked-by on v1 1/1
#1 lore raw

Having unit tests is good. Actually running them is better :-) - found at testing the latest MaxF patch on 2.5...

Your patch has been applied to the master and release/2.5 branch.

commit cc39fc7f3bddc6567507406cf8a389418e101bf8 (master) commit 555a74419478ea24aa353698a8706b4b2ed43916 (release/2.5)

Author: Arne Schwabe
Date:   Wed Dec 8 18:06:14 2021 +0100
     Add argv_insert_head__empty_argv__head_only to argv tests

     Signed-off-by: Arne Schwabe <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg23359.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering