diff --git a/test/drivers/test_suites/syscall_exit_suite/send_x.cpp b/test/drivers/test_suites/syscall_exit_suite/send_x.cpp index 9e1061663d..1cd4cf4759 100644 --- a/test/drivers/test_suites/syscall_exit_suite/send_x.cpp +++ b/test/drivers/test_suites/syscall_exit_suite/send_x.cpp @@ -12,7 +12,8 @@ TEST(SyscallExit, sendX_fail) int32_t mock_fd = -1; const unsigned data_len = DEFAULT_SNAPLEN * 2; char buf[data_len] = "some-data"; - int flags = 0 assert_syscall_state(SYSCALL_FAILURE, "send", syscall(__NR_send, mock_fd, (void *)buf, data_len, flags)); + int flags = 0; + assert_syscall_state(SYSCALL_FAILURE, "send", syscall(__NR_send, mock_fd, (void *)buf, data_len, flags)); int errno_value = -errno; /*=============================== TRIGGER SYSCALL ===========================*/ diff --git a/test/drivers/test_suites/syscall_exit_suite/socketcall_x.cpp b/test/drivers/test_suites/syscall_exit_suite/socketcall_x.cpp index e06ea8a98e..f458fe367a 100644 --- a/test/drivers/test_suites/syscall_exit_suite/socketcall_x.cpp +++ b/test/drivers/test_suites/syscall_exit_suite/socketcall_x.cpp @@ -3146,7 +3146,7 @@ TEST(SyscallExit, socketcall_sendX) args[2] = data_len; args[3] = (unsigned long)flags; assert_syscall_state(SYSCALL_FAILURE, "send", syscall(__NR_socketcall, SYS_SEND, args)); - + int64_t errno_value = -errno; /*=============================== TRIGGER SYSCALL ===========================*/ evt_test->disable_capture();