Skip to content

Commit

Permalink
Add semicolon and declare errno_value variable
Browse files Browse the repository at this point in the history
Signed-off-by: mdafsanhossain <[email protected]>
  • Loading branch information
mdafsanhossain authored and poiana committed Nov 9, 2023
1 parent 3f767c9 commit f98ad8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/drivers/test_suites/syscall_exit_suite/send_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ===========================*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f98ad8f

Please sign in to comment.