| 410 | } |
| 411 | |
| 412 | static 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 */ |
| 430 | static void TC_sal_socket_create(void) |
no test coverage detected