[compiler-rt] 00250a6 - [Darwin] Fix ASAN symbolizer tests

Francis Visoiu Mistrih via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 11:40:21 PDT 2023


Author: Francis Visoiu Mistrih
Date: 2023-05-31T11:40:10-07:00
New Revision: 00250a6650e13348769d08ca4a6362fd3ea8edba

URL: https://github.com/llvm/llvm-project/commit/00250a6650e13348769d08ca4a6362fd3ea8edba
DIFF: https://github.com/llvm/llvm-project/commit/00250a6650e13348769d08ca4a6362fd3ea8edba.diff

LOG: [Darwin] Fix ASAN symbolizer tests

RenderFrame now strips `wrap_`.

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/Darwin/dladdr-demangling.cpp
    compiler-rt/test/asan/TestCases/Darwin/sandbox-symbolizer.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Darwin/dladdr-demangling.cpp b/compiler-rt/test/asan/TestCases/Darwin/dladdr-demangling.cpp
index 19e43f4a2f478..617e57ff1adc7 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/dladdr-demangling.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/dladdr-demangling.cpp
@@ -22,10 +22,10 @@ class MyClass {
     // CHECK-DLADDR: failed to spawn external symbolizer
     // CHECK: {{    #0 0x.* in MyClass::my_function\(int\)}}
     // CHECK: {{freed by thread T0 here:}}
-    // CHECK: {{    #0 0x.* in wrap_free}}
+    // CHECK: {{    #0 0x.* in free}}
     // CHECK: {{    #1 0x.* in MyClass::my_function\(int\)}}
     // CHECK: {{previously allocated by thread T0 here:}}
-    // CHECK: {{    #0 0x.* in wrap_malloc}}
+    // CHECK: {{    #0 0x.* in malloc}}
     // CHECK: {{    #1 0x.* in MyClass::my_function\(int\)}}
   }
 };

diff  --git a/compiler-rt/test/asan/TestCases/Darwin/sandbox-symbolizer.cpp b/compiler-rt/test/asan/TestCases/Darwin/sandbox-symbolizer.cpp
index ea2dbd94eba90..4f43471c7ae7d 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/sandbox-symbolizer.cpp
+++ b/compiler-rt/test/asan/TestCases/Darwin/sandbox-symbolizer.cpp
@@ -26,9 +26,9 @@ int main() {
   // CHECK: {{READ of size 1 at 0x.* thread T0}}
   // CHECK: {{    #0 0x.* in main}}
   // CHECK: {{freed by thread T0 here:}}
-  // CHECK: {{    #0 0x.* in wrap_free}}
+  // CHECK: {{    #0 0x.* in free}}
   // CHECK: {{    #1 0x.* in main}}
   // CHECK: {{previously allocated by thread T0 here:}}
-  // CHECK: {{    #0 0x.* in wrap_malloc}}
+  // CHECK: {{    #0 0x.* in malloc}}
   // CHECK: {{    #1 0x.* in main}}
 }


        


More information about the llvm-commits mailing list