diff options
author | Alexander Potapenko <glider@google.com> | 2012-11-09 11:55:33 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-11-09 11:55:33 +0000 |
commit | 8c7e491c45842a13faedbead8250c8c98817455b (patch) | |
tree | ed7fc284feccb1f4b95391d14e797ffbb78adc60 | |
parent | 275ca01c181dd04ac504971e300ccc92d334a61d (diff) | |
download | compiler-rt-8c7e491c45842a13faedbead8250c8c98817455b.tar.gz |
Add a possible underscore before the wrappers to the output expectations for Darwin
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167610 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/lit_tests/strncpy-overflow.cc | 2 | ||||
-rw-r--r-- | lib/asan/lit_tests/use-after-free.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/asan/lit_tests/strncpy-overflow.cc b/lib/asan/lit_tests/strncpy-overflow.cc index d3c66daa7..9381f1378 100644 --- a/lib/asan/lit_tests/strncpy-overflow.cc +++ b/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/lib/asan/lit_tests/use-after-free.cc b/lib/asan/lit_tests/use-after-free.cc index 0ab8e094c..042ca66cc 100644 --- a/lib/asan/lit_tests/use-after-free.cc +++ b/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:}} |