Skip to content

Commit

Permalink
cleanup: avoid including libscap/strl.h in connect_x
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
  • Loading branch information
Andreagit97 authored and poiana committed Jan 7, 2025
1 parent 258b4b4 commit e111e43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/drivers/test_suites/syscall_exit_suite/connect_x.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "../../event_class/event_class.h"
#include <libscap/strl.h>

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

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e111e43

Please sign in to comment.