diff options
author | Alexander Richardson <arichardson.kde@gmail.com> | 2019-08-28 18:37:53 +0000 |
---|---|---|
committer | Alexander Richardson <arichardson.kde@gmail.com> | 2019-08-28 18:37:53 +0000 |
commit | 48d8f11bad0e86d4905d686777e778e385540538 (patch) | |
tree | 4255391f85cb2ffcd9497c4170caab70561831a6 /test | |
parent | a47b69c243569b43cf8b41bf513ba9cdd49b3f78 (diff) | |
download | compiler-rt-48d8f11bad0e86d4905d686777e778e385540538.tar.gz |
Further relax checks in asan-symbolize-bad-path.cpp
It turns out that the DarwinSymbolizer does not print the "in" part for
invalid files but instead prints
#0 0xabcdabcd (.../asan-symbolize-bad-path.cpp.tmp/bad/path:i386+0x1234)
This tests is only checking that asan_symbolize.py doesn't hang or crash,
so further relax the checks to ensure that the test passes on macOS.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@370243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp b/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp index d41683872..c53a932a2 100644 --- a/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp +++ b/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp @@ -2,13 +2,13 @@ // path. // RUN: echo '#0 0xabcdabcd (%t/bad/path+0x1234)' | %asan_symbolize | FileCheck %s -check-prefix CHECK-BAD-FILE // Note: can't check for "0xabcdabcd in ?? ??:0" since DarwinSymbolizer will print the file even if it doesn't exist. -// CHECK-BAD-FILE: #0 0xabcdabcd in +// CHECK-BAD-FILE: #0 0xabcdabcd // CHECK-BAD-FILE-EMPTY: // Also test that asan_symbolize doesn't assert on an invalid address with a valid file: // RUN: %clangxx_asan -O0 %s -o %t // RUN: echo '#0 0xabcdabcd (%t+0xabcdabcd)' | %asan_symbolize | FileCheck %s -check-prefix CHECK-BAD-ADDR -// CHECK-BAD-ADDR: #0 0xabcdabcd in +// CHECK-BAD-ADDR: #0 0xabcdabcd // CHECK-BAD-ADDR-EMPTY: int main() { |