From f98ad8f25084680c29f4c222aeb01cfb2bc3b2d6 Mon Sep 17 00:00:00 2001 From: mdafsanhossain Date: Thu, 9 Nov 2023 13:27:18 +0530 Subject: [PATCH] Add semicolon and declare errno_value variable Signed-off-by: mdafsanhossain --- test/drivers/test_suites/syscall_exit_suite/send_x.cpp | 3 ++- test/drivers/test_suites/syscall_exit_suite/socketcall_x.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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();