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

Commit 6f9e5adf authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "debuggerd_test: add test for process/thread names." am: ca8954f7 am:...

Merge "debuggerd_test: add test for process/thread names." am: ca8954f7 am: 330b6fd8 am: 5a6f589b
am: 4c35139e

Change-Id: I5cb4139821c48b6ba2db796891e22442b597a42a
parents ab2dba6b 4c35139e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -479,6 +479,7 @@ TEST_F(CrasherTest, capabilities) {
      err(1, "failed to drop ambient capabilities");
    }

    pthread_setname_np(pthread_self(), "thread_name");
    raise(SIGSYS);
  });

@@ -492,6 +493,7 @@ TEST_F(CrasherTest, capabilities) {
  FinishIntercept(&intercept_result);
  ASSERT_EQ(1, intercept_result) << "tombstoned reported failure";
  ConsumeFd(std::move(output_fd), &result);
  ASSERT_MATCH(result, R"(name: thread_name\s+>>> .+debuggerd_test(32|64) <<<)");
  ASSERT_MATCH(result, R"(#00 pc [0-9a-f]+\s+ /system/lib)" ARCH_SUFFIX R"(/libc.so \(tgkill)");
}