MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / cleanup_test_connection

Function cleanup_test_connection

components/net/utest/tc_sal_socket.c:412–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412static void cleanup_test_connection(int server_sock, int client_sock, int accepted_sock)
413{
414 if (accepted_sock >= 0)
415 {
416 close_test_socket(accepted_sock);
417 }
418 if (client_sock >= 0)
419 {
420 close_test_socket(client_sock);
421 }
422 if (server_sock >= 0)
423 {
424 close_test_socket(server_sock);
425 }
426 LOG_I("Cleaned up test connection sockets");
427}
428
429/* Test cases for basic socket operations */
430static void TC_sal_socket_create(void)

Callers 1

TC_sal_socket_send_recvFunction · 0.85

Calls 1

close_test_socketFunction · 0.85

Tested by

no test coverage detected