Skip to content

Commit

Permalink
fix(test/drivers): wait the right pid
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Feb 6, 2024
1 parent 3cd30e3 commit 2b0bbfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ TEST(SyscallExit, process_vm_readvX_success)
assert_syscall_state(SYSCALL_SUCCESS, "process_vm_readv", read, NOT_EQUAL, 0);

close(pipe_fd[0]);
wait(NULL);

int wstatus;
waitpid(child_pid, &wstatus, 0);
}

/*=============================== TRIGGER SYSCALL ===========================*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ TEST(SyscallExit, process_vm_writevX_success)

close(pipe_fd[1]);

wait(NULL);
int wstatus;
waitpid(child_pid, &wstatus, 0);
}

/*=============================== TRIGGER SYSCALL ===========================*/
Expand Down

0 comments on commit 2b0bbfe

Please sign in to comment.