Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a484817f authored by Christopher Ferris's avatar Christopher Ferris Committed by Gerrit Code Review
Browse files

Merge "Increase timeout to avoid flaky tests."

parents 7e473e26 afc0ff7f
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -243,9 +243,10 @@ void CrasherTest::FinishCrasher() {


void CrasherTest::AssertDeath(int signo) {
void CrasherTest::AssertDeath(int signo) {
  int status;
  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) {
  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);
    sleep(100);
    FAIL() << "failed to wait for crasher: " << strerror(errno);
    FAIL() << "failed to wait for crasher: " << strerror(errno);
  }
  }