asan: fix tests
authorDmitry Vyukov <dvyukov@google.com>
Fri, 25 May 2012 09:46:33 +0000 (09:46 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 25 May 2012 09:46:33 +0000 (09:46 +0000)
depending on -m32/-m64 addr2line says either e.g. __xsan_strnlen or just strnlen

llvm-svn: 157464

compiler-rt/lib/asan/output_tests/heap-overflow.cc
compiler-rt/lib/asan/output_tests/strncpy-overflow.cc
compiler-rt/lib/asan/output_tests/use-after-free.cc

index 57233e8..bc8a9f8 100644 (file)
@@ -13,7 +13,7 @@ int main(int argc, char **argv) {
 // Check-Common: {{0x.* is located 0 bytes to the right of 10-byte region}}
 // Check-Common: {{allocated by thread T0 here:}}
 
-// Check-Linux: {{    #0 0x.* in __xsan_malloc}}
+// Check-Linux: {{    #0 0x.* in .*malloc}}
 // Check-Linux: {{    #1 0x.* in main .*heap-overflow.cc:[45]}}
 
 // Check-Darwin: {{    #0 0x.* in .*mz_malloc.*}}
index 8b72d0f..0333622 100644 (file)
@@ -9,13 +9,13 @@ int main(int argc, char **argv) {
 }
 
 // Check-Common: {{WRITE of size 1 at 0x.* thread T0}}
-// Check-Linux: {{    #0 0x.* in __xsan_strncpy}}
+// Check-Linux: {{    #0 0x.* in .*strncpy}}
 // Check-Darwin: {{    #0 0x.* in wrap_strncpy}}
 // Check-Common: {{    #1 0x.* in main .*strncpy-overflow.cc:[78]}}
 // Check-Common: {{0x.* is located 0 bytes to the right of 9-byte region}}
 // Check-Common: {{allocated by thread T0 here:}}
 
-// Check-Linux: {{    #0 0x.* in __xsan_malloc}}
+// Check-Linux: {{    #0 0x.* in .*malloc}}
 // Check-Linux: {{    #1 0x.* in main .*strncpy-overflow.cc:6}}
 
 // Check-Darwin: {{    #0 0x.* in .*mz_malloc.*}}
index 5d6ab5f..7cc2a7f 100644 (file)
@@ -12,7 +12,7 @@ int main() {
 // Check-Common: {{0x.* is located 5 bytes inside of 10-byte region .0x.*,0x.*}}
 // Check-Common: {{freed by thread T0 here:}}
 
-// Check-Linux: {{    #0 0x.* in __xsan_free}}
+// Check-Linux: {{    #0 0x.* in .*free}}
 // Check-Linux: {{    #1 0x.* in main .*use-after-free.cc:[45]}}
 
 // Check-Darwin: {{    #0 0x.* in .*mz_free.*}}
@@ -22,7 +22,7 @@ int main() {
 
 // Check-Common: {{previously allocated by thread T0 here:}}
 
-// Check-Linux: {{    #0 0x.* in __xsan_malloc}}
+// Check-Linux: {{    #0 0x.* in .*malloc}}
 // Check-Linux: {{    #1 0x.* in main .*use-after-free.cc:3}}
 
 // Check-Darwin: {{    #0 0x.* in .*mz_malloc.*}}