From e111e4302c337ab1ca80864eb716532d6666babb Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 7 Jan 2025 17:24:44 +0100 Subject: [PATCH] cleanup: avoid including libscap/strl.h in connect_x Signed-off-by: Andrea Terzolo --- test/drivers/test_suites/syscall_exit_suite/connect_x.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/drivers/test_suites/syscall_exit_suite/connect_x.cpp b/test/drivers/test_suites/syscall_exit_suite/connect_x.cpp index 8d5725bcc2..287dbd14c4 100644 --- a/test/drivers/test_suites/syscall_exit_suite/connect_x.cpp +++ b/test/drivers/test_suites/syscall_exit_suite/connect_x.cpp @@ -1,5 +1,4 @@ #include "../../event_class/event_class.h" -#include #if defined(__NR_connect) && defined(__NR_socket) && defined(__NR_bind) && defined(__NR_close) @@ -194,7 +193,7 @@ TEST(SyscallExit, connectX_UNIX) { if(ret == -1) { FAIL() << "Failed to create symlink"; } - strlcpy(server_addr.sun_path, server_symlink, MAX_SUN_PATH); + evt_test->server_fill_sockaddr_un(&server_addr, server_symlink); assert_syscall_state( SYSCALL_SUCCESS,