[compiler-rt] Skip MemtagBasicDeathTest#Unsupported when running with HWASan (PR #84243)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 14:20:08 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Florian Mayer (fmayer)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/84243.diff
1 Files Affected:
- (modified) compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp (+5)
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp b/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
index fd277f962a9aaa..37a18858e67c2c 100644
--- a/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
@@ -12,12 +12,17 @@
#include "platform.h"
#include "tests/scudo_unit_test.h"
+extern "C" void __hwasan_init() __attribute__((weak));
+
#if SCUDO_LINUX
namespace scudo {
TEST(MemtagBasicDeathTest, Unsupported) {
if (archSupportsMemoryTagging())
GTEST_SKIP();
+ // Skip when running with HWASan.
+ if (&__hwasan_init != 0)
+ GTEST_SKIP();
EXPECT_DEATH(archMemoryTagGranuleSize(), "not supported");
EXPECT_DEATH(untagPointer((uptr)0), "not supported");
``````````
</details>
https://github.com/llvm/llvm-project/pull/84243
More information about the llvm-commits
mailing list