]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Add argv_insert_head__empty_argv__head_only to argv tests
authorArne Schwabe <arne@rfc2549.org>
Wed, 8 Dec 2021 17:06:14 +0000 (18:06 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 9 Dec 2021 11:18:20 +0000 (12:18 +0100)
The unit test argv_insert_head__empty_argv__head_only was defined
but never used. Add it to the array of unit tests.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211208170614.3404821-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23359.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit cc39fc7f3bddc6567507406cf8a389418e101bf8)

tests/unit_tests/openvpn/test_argv.c

index 3dc470a52d1e03986184a6ea6f3beae426632267..ea0d36706159b03194203b36d05d0206094bd791 100644 (file)
@@ -267,6 +267,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);