Skip to content

Commit e111e43

Browse files
Andreagit97poiana
authored andcommitted
cleanup: avoid including libscap/strl.h in connect_x
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
1 parent 258b4b4 commit e111e43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/drivers/test_suites/syscall_exit_suite/connect_x.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "../../event_class/event_class.h"
2-
#include <libscap/strl.h>
32

43
#if defined(__NR_connect) && defined(__NR_socket) && defined(__NR_bind) && defined(__NR_close)
54

@@ -194,7 +193,7 @@ TEST(SyscallExit, connectX_UNIX) {
194193
if(ret == -1) {
195194
FAIL() << "Failed to create symlink";
196195
}
197-
strlcpy(server_addr.sun_path, server_symlink, MAX_SUN_PATH);
196+
evt_test->server_fill_sockaddr_un(&server_addr, server_symlink);
198197

199198
assert_syscall_state(
200199
SYSCALL_SUCCESS,

0 commit comments

Comments
 (0)