[scudo] Fix test on aarch64 without MTE
GitOrigin-RevId: 07a1f3513e2e3802671a0a4ca1edf2fe577fad03
Change-Id: Id5f6fb88ab0426907455119102eedf2775fc6c2a
diff --git a/standalone/tests/secondary_test.cpp b/standalone/tests/secondary_test.cpp
index d3b7c48..7236792 100644
--- a/standalone/tests/secondary_test.cpp
+++ b/standalone/tests/secondary_test.cpp
@@ -21,7 +21,8 @@
#include <vector>
template <typename Config> static scudo::Options getOptionsForConfig() {
- if (!Config::MaySupportMemoryTagging || !scudo::archSupportsMemoryTagging())
+ if (!Config::MaySupportMemoryTagging || !scudo::archSupportsMemoryTagging() ||
+ !scudo::systemSupportsMemoryTagging())
return {};
scudo::AtomicOptions AO;
AO.set(scudo::OptionBit::UseMemoryTagging);