summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-11-09 11:55:33 +0000
committerAlexander Potapenko <glider@google.com>2012-11-09 11:55:33 +0000
commit4b8e32de1226bba0923a2dbe04e7a40bf7b1cfd4 (patch)
treeca0a0278eecc1b0d89ff4084801cd55dc655efeb
parent9512d3f161860d9a8697458ceaaab18850be8059 (diff)
downloadbcm5719-llvm-4b8e32de1226bba0923a2dbe04e7a40bf7b1cfd4.tar.gz
bcm5719-llvm-4b8e32de1226bba0923a2dbe04e7a40bf7b1cfd4.zip
Add a possible underscore before the wrappers to the output expectations for Darwin
llvm-svn: 167610
-rw-r--r--compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc2
-rw-r--r--compiler-rt/lib/asan/lit_tests/use-after-free.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc b/compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc
index d3c66daa7a5..9381f13788c 100644
--- a/compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc
+++ b/compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc
@@ -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:}}
diff --git a/compiler-rt/lib/asan/lit_tests/use-after-free.cc b/compiler-rt/lib/asan/lit_tests/use-after-free.cc
index 0ab8e094c33..042ca66ccc5 100644
--- a/compiler-rt/lib/asan/lit_tests/use-after-free.cc
+++ b/compiler-rt/lib/asan/lit_tests/use-after-free.cc
@@ -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:}}
OpenPOWER on IntegriCloud