[scudo] Fix test on arch without MTE
authorVitaly Buka <vitalybuka@google.com>
Thu, 24 Jun 2021 07:07:24 +0000 (00:07 -0700)
committerVitaly Buka <vitalybuka@google.com>
Thu, 24 Jun 2021 07:07:24 +0000 (00:07 -0700)
compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp

index 461c864..747638b 100644 (file)
@@ -112,7 +112,7 @@ TEST(ScudoWrappersCppTest, ThreadedNew) {
   // TODO: Investigate why libc sometimes crashes with tag missmatch in
   // __pthread_clockjoin_ex.
   std::unique_ptr<scudo::ScopedDisableMemoryTagChecks> NoTags;
-  if (scudo::systemSupportsMemoryTagging() && !SCUDO_ANDROID)
+  if (!SCUDO_ANDROID && scudo::archSupportsMemoryTagging() && scudo::systemSupportsMemoryTagging())
     NoTags = std::make_unique<scudo::ScopedDisableMemoryTagChecks>();
 
   Ready = false;