[compiler-rt] 51d8f59 - [sanitizers] run print module map test run on posix
Emily Shi via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 15:41:20 PST 2021
Author: Emily Shi
Date: 2021-03-05T15:41:14-08:00
New Revision: 51d8f598ad57d0b3581f167afe1ec404a58ff386
URL: https://github.com/llvm/llvm-project/commit/51d8f598ad57d0b3581f167afe1ec404a58ff386
DIFF: https://github.com/llvm/llvm-project/commit/51d8f598ad57d0b3581f167afe1ec404a58ff386.diff
LOG: [sanitizers] run print module map test run on posix
Previously, this test only ran for mac because platforms have different messaging. This diff enables the test for all posix
rdar://75110847
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D98079
Added:
compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
Modified:
Removed:
compiler-rt/test/sanitizer_common/TestCases/Darwin/print-module-map.cpp
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Darwin/print-module-map.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
similarity index 67%
rename from compiler-rt/test/sanitizer_common/TestCases/Darwin/print-module-map.cpp
rename to compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
index 48fb677ae288..23ef9dd57dac 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Darwin/print-module-map.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/print-module-map.cpp
@@ -1,6 +1,11 @@
// Checks that module map does not print at 0, prints once after aborting with 1,
// and prints once before and after aborting with 2
+// mac header is "Process module map"
+// other posix header is "Process memory map follows"
+// windows header is "Dumping process modules" (ignored here)
+// we should consider unifying the message cross platform
+
// RUN: %clangxx -DUSING_%tool_name %s -o %t -w
// RUN: %env_tool_opts="print_module_map=0" not %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MM0
@@ -31,10 +36,10 @@ int main() {
}
// CHECK: SUMMARY:
-// CHECK-MM0-NOT: Process module map:
-// CHECK-MM1-NOT: Process module map:
-// CHECK-MM2: Process module map:
+// CHECK-MM0-NOT: {{Process .*map}}
+// CHECK-MM1-NOT: {{Process .*map}}
+// CHECK-MM2: {{Process (module|memory) map}}
// CHECK: ABORTING
-// CHECK-MM0-NOT: Process module map:
-// CHECK-MM1-NEXT: Process module map:
-// CHECK-MM2-NEXT: Process module map:
+// CHECK-MM0-NOT: {{Process .*map}}
+// CHECK-MM1-NEXT: {{Process (module|memory) map}}
+// CHECK-MM2-NEXT: {{Process (module|memory) map}}
More information about the llvm-commits
mailing list