mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-24 02:34:01 +00:00
Reap child in VerifyStackReadWithMultipleThreads
Patch by Chris Dearman <chris@mips.com> R=benchan at http://breakpad.appspot.com/378001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@956 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
dff2d3e632
commit
258f2459fc
1 changed files with 7 additions and 0 deletions
|
@ -252,7 +252,14 @@ TEST(LinuxPtraceDumperTest, VerifyStackReadWithMultipleThreads) {
|
||||||
4);
|
4);
|
||||||
EXPECT_EQ(dumper.threads()[i], one_thread_id);
|
EXPECT_EQ(dumper.threads()[i], one_thread_id);
|
||||||
}
|
}
|
||||||
|
EXPECT_TRUE(dumper.ThreadsResume());
|
||||||
kill(child_pid, SIGKILL);
|
kill(child_pid, SIGKILL);
|
||||||
|
|
||||||
|
// Reap child
|
||||||
|
int status;
|
||||||
|
ASSERT_NE(-1, HANDLE_EINTR(waitpid(child_pid, &status, 0)));
|
||||||
|
ASSERT_TRUE(WIFSIGNALED(status));
|
||||||
|
ASSERT_EQ(SIGKILL, WTERMSIG(status));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(LinuxPtraceDumperTest, BuildProcPath) {
|
TEST(LinuxPtraceDumperTest, BuildProcPath) {
|
||||||
|
|
Loading…
Reference in a new issue