LEFT | RIGHT |
1 // Copyright (c) 2009, Google Inc. | 1 // Copyright (c) 2009, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } | 454 } |
455 EXPECT_TRUE(dumper.ThreadsResume()); | 455 EXPECT_TRUE(dumper.ThreadsResume()); |
456 kill(child_pid, SIGKILL); | 456 kill(child_pid, SIGKILL); |
457 | 457 |
458 // Reap child | 458 // Reap child |
459 int status; | 459 int status; |
460 ASSERT_NE(-1, HANDLE_EINTR(waitpid(child_pid, &status, 0))); | 460 ASSERT_NE(-1, HANDLE_EINTR(waitpid(child_pid, &status, 0))); |
461 ASSERT_TRUE(WIFSIGNALED(status)); | 461 ASSERT_TRUE(WIFSIGNALED(status)); |
462 ASSERT_EQ(SIGKILL, WTERMSIG(status)); | 462 ASSERT_EQ(SIGKILL, WTERMSIG(status)); |
463 } | 463 } |
LEFT | RIGHT |