Skip to content

Commit

Permalink
fix(test/drivers): wait for process_vm_readv
Browse files Browse the repository at this point in the history
Signed-off-by: therealbobo <[email protected]>
  • Loading branch information
therealbobo committed Feb 12, 2024
1 parent 450310d commit b1da6f9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ TEST(SyscallExit, process_vm_readvX_success)
ssize_t read = write(pipe_fd[1], &target, sizeof(void*));
ASSERT_GT(read, 0);

/*
* The following write call makes sure that the process_vm_readv
* has been called.
*/
read = write(pipe_fd[1], buf, 2);
ASSERT_GT(read, 0);

close(pipe_fd[1]);

exit(EXIT_SUCCESS);
Expand Down

0 comments on commit b1da6f9

Please sign in to comment.