summaryrefslogtreecommitdiff
path: root/debuggerd/debuggerd_test.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-22 01:04:47 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-22 01:04:47 +0000
commit07da083e6bf36dd4be64a85b3461623d2488476d (patch)
treefc21546830650c084339a9892ea0aee2569408f7 /debuggerd/debuggerd_test.cpp
parent79c5fee02e1430bec2f75956297f5b631e70b407 (diff)
parentfb16db72d227d373b0ef8cc04c7efb6091f6cc68 (diff)
Snap for 6852218 from fb16db72d227d373b0ef8cc04c7efb6091f6cc68 to sc-release
Change-Id: Iae251c05f967d42661cc2d19a0fac485c7972cf4
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
-rw-r--r--debuggerd/debuggerd_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp
index 108787e4ab..5ed9e57fa3 100644
--- a/debuggerd/debuggerd_test.cpp
+++ b/debuggerd/debuggerd_test.cpp
@@ -309,6 +309,11 @@ TEST_F(CrasherTest, smoke) {
std::string result;
ConsumeFd(std::move(output_fd), &result);
ASSERT_MATCH(result, R"(signal 11 \(SIGSEGV\), code 1 \(SEGV_MAPERR\), fault addr 0xdead)");
+
+ if (mte_supported()) {
+ // Test that the default TAGGED_ADDR_CTRL value is set.
+ ASSERT_MATCH(result, R"(tagged_addr_ctrl: 000000000007fff3)");
+ }
}
TEST_F(CrasherTest, tagged_fault_addr) {