summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-06-26 15:08:51 -0700
committerChristopher Ferris <cferris@google.com>2019-06-26 15:08:51 -0700
commitafc0ff7fe06aee9822fac97e52d1fba09c695d8b (patch)
tree3164cf17fff2dcb5f501b1259febccba75e77626 /debuggerd/debuggerd_test.cpp
parentc0349199db745ee53e8d1133ddfce57fccc69cc7 (diff)
Increase timeout to avoid flaky tests.
Also, print extra information when an error occurs. Test: Ran unit tests. Change-Id: I3404549db0ac18a4a82a99b2620556db96376bca
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
-rw-r--r--debuggerd/debuggerd_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp
index 64df53e9e..1f0e4201e 100644
--- a/debuggerd/debuggerd_test.cpp
+++ b/debuggerd/debuggerd_test.cpp
@@ -243,9 +243,10 @@ void CrasherTest::FinishCrasher() {
void CrasherTest::AssertDeath(int signo) {
int status;
- pid_t pid = TIMEOUT(5, waitpid(crasher_pid, &status, 0));
+ pid_t pid = TIMEOUT(10, waitpid(crasher_pid, &status, 0));
if (pid != crasher_pid) {
- printf("failed to wait for crasher (pid %d)\n", crasher_pid);
+ printf("failed to wait for crasher (expected pid %d, return value %d): %s\n", crasher_pid, pid,
+ strerror(errno));
sleep(100);
FAIL() << "failed to wait for crasher: " << strerror(errno);
}