Skip to content

Commit

Permalink
fix(test/drivers): fixed sendmsgX_fail and `socketcallX_sendmsg_fai…
Browse files Browse the repository at this point in the history
…l` tests.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Apr 18, 2024
1 parent 669ec36 commit eecc115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/drivers/test_suites/syscall_exit_suite/sendmsg_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ TEST(SyscallExit, sendmsgX_fail)
iov[0].iov_base = sent_data_1;
iov[0].iov_len = sizeof(sent_data_1);
send_msg.msg_iov = iov;
/* here we pass a wrong `iovlen` to check the behavior */
send_msg.msg_iovlen = 3;
send_msg.msg_iovlen = 1;
uint32_t sendmsg_flags = 0;

assert_syscall_state(SYSCALL_FAILURE, "sendmsg", syscall(__NR_sendmsg, mock_fd, &send_msg, sendmsg_flags));
Expand Down
3 changes: 1 addition & 2 deletions test/drivers/test_suites/syscall_exit_suite/socketcall_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1767,8 +1767,7 @@ TEST(SyscallExit, socketcall_sendmsgX_fail)
iov[0].iov_base = sent_data_1;
iov[0].iov_len = sizeof(sent_data_1);
send_msg.msg_iov = iov;
/* here we pass a wrong `iovlen` to check the behavior */
send_msg.msg_iovlen = 3;
send_msg.msg_iovlen = 1;
uint32_t sendmsg_flags = 0;

unsigned long args[3] = {0};
Expand Down

0 comments on commit eecc115

Please sign in to comment.