tests: Fix testname of sendmsg tests
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 10 Aug 2015 11:39:09 +0000 (13:39 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 11 Aug 2015 11:58:33 +0000 (13:58 +0200)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
tests/test_echo_udp_sendmsg_recvmsg.c

index aa9caea97ceb237d11d57420014ce5cce45ce274..1a93bdfcc7f3a0c5f04bc3582e43b03fe690b66a 100644 (file)
@@ -38,7 +38,7 @@ static int teardown(void **state)
        return 0;
 }
 
-static void test_sendto_recvfrom_ipv4(void **state)
+static void test_sendmsg_recvmsg_ipv4(void **state)
 {
        struct torture_address addr = {
                .sa_socklen = sizeof(struct sockaddr_in),
@@ -115,7 +115,7 @@ static void test_sendto_recvfrom_ipv4(void **state)
 }
 
 #ifdef HAVE_IPV6
-static void test_sendto_recvfrom_ipv6(void **state)
+static void test_sendmsg_recvmsg_ipv6(void **state)
 {
        struct torture_address addr = {
                .sa_socklen = sizeof(struct sockaddr_in6),
@@ -195,11 +195,11 @@ int main(void) {
        int rc;
 
        const struct CMUnitTest sendmsg_tests[] = {
-               cmocka_unit_test_setup_teardown(test_sendto_recvfrom_ipv4,
+               cmocka_unit_test_setup_teardown(test_sendmsg_recvmsg_ipv4,
                                                setup_echo_srv_udp_ipv4,
                                                teardown),
 #ifdef HAVE_IPV6
-               cmocka_unit_test_setup_teardown(test_sendto_recvfrom_ipv6,
+               cmocka_unit_test_setup_teardown(test_sendmsg_recvmsg_ipv6,
                                                setup_echo_srv_udp_ipv6,
                                                teardown),
 #endif