Add a possible underscore before the wrappers to the output expectations for Darwin
authorAlexander Potapenko <glider@google.com>
Fri, 9 Nov 2012 11:55:33 +0000 (11:55 +0000)
committerAlexander Potapenko <glider@google.com>
Fri, 9 Nov 2012 11:55:33 +0000 (11:55 +0000)
llvm-svn: 167610

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

index d3c66da..9381f13 100644 (file)
@@ -24,7 +24,7 @@ int main(int argc, char **argv) {
   strncpy(short_buffer, hello, 10);  // BOOM
   // CHECK: {{WRITE of size 1 at 0x.* thread T0}}
   // CHECK-Linux: {{    #0 0x.* in .*strncpy}}
-  // CHECK-Darwin: {{    #0 0x.* in wrap_strncpy}}
+  // CHECK-Darwin: {{    #0 0x.* in _?wrap_strncpy}}
   // CHECK: {{    #1 0x.* in _?main .*strncpy-overflow.cc:24}}
   // CHECK: {{0x.* is located 0 bytes to the right of 9-byte region}}
   // CHECK: {{allocated by thread T0 here:}}
index 0ab8e09..042ca66 100644 (file)
@@ -32,7 +32,7 @@ int main() {
 
   // CHECK-Darwin: {{    #0 0x.* in .*mz_free.*}}
   // We override free() on Darwin, thus no malloc_zone_free
-  // CHECK-Darwin: {{    #1 0x.* in wrap_free}}
+  // CHECK-Darwin: {{    #1 0x.* in _?wrap_free}}
   // CHECK-Darwin: {{    #2 0x.* in _?main .*use-after-free.cc:21}}
 
   // CHECK: {{previously allocated by thread T0 here:}}