[compiler-rt] 3efb027 - [Sanitizers] Fix procmap tests for apple arm64
Blue Gaston via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 11:29:03 PST 2023
Author: Blue Gaston
Date: 2023-01-03T12:28:57-07:00
New Revision: 3efb0274b7d90d675594a7a2735bdfed0a994fde
URL: https://github.com/llvm/llvm-project/commit/3efb0274b7d90d675594a7a2735bdfed0a994fde
DIFF: https://github.com/llvm/llvm-project/commit/3efb0274b7d90d675594a7a2735bdfed0a994fde.diff
LOG: [Sanitizers] Fix procmap tests for apple arm64
As part of effort to enable sanitizer common unit tests on arm64 apple devices.
Add kModuleArchARM64 as expected Arch
Differential Revision: https://reviews.llvm.org/D140567
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
index 3201867508e70..d4cc690d85534 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_procmaps_test.cpp
@@ -65,11 +65,11 @@ TEST(MemoryMapping, LoadedModuleArchAndUUID) {
memory_mapping.DumpListOfModules(&modules);
for (uptr i = 0; i < modules.size(); ++i) {
ModuleArch arch = modules[i].arch();
- // Darwin unit tests are only run on i386/x86_64/x86_64h.
+ // Darwin unit tests are only run on i386/x86_64/x86_64h/arm64.
if (SANITIZER_WORDSIZE == 32) {
EXPECT_EQ(arch, kModuleArchI386);
} else if (SANITIZER_WORDSIZE == 64) {
- EXPECT_TRUE(arch == kModuleArchX86_64 || arch == kModuleArchX86_64H);
+ EXPECT_TRUE(arch == kModuleArchX86_64 || arch == kModuleArchX86_64H || kModuleArchARM64);
}
const u8 *uuid = modules[i].uuid();
u8 null_uuid[kModuleUUIDSize] = {0};
More information about the llvm-commits
mailing list