summaryrefslogtreecommitdiff
path: root/tests/mte_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mte_test.cpp')
-rw-r--r--tests/mte_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mte_test.cpp b/tests/mte_test.cpp
index f329d8d70..ade95326c 100644
--- a/tests/mte_test.cpp
+++ b/tests/mte_test.cpp
@@ -38,7 +38,7 @@ static void test_tag_mismatch() {
#endif
}
#if defined(__aarch64__)
- if (mte_supported()) {
+ if (mte_supported() && running_with_mte()) {
EXPECT_DEATH(
{
volatile int load ATTRIBUTE_UNUSED = *mistagged_p;