aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Richardson <arichardson.kde@gmail.com>2019-08-28 18:37:53 +0000
committerAlexander Richardson <arichardson.kde@gmail.com>2019-08-28 18:37:53 +0000
commit83d2f0e7993a376c5ffb65e5760e58e72d27daee (patch)
tree07fc93fe4cf4608295e4bc36d2471b28604b2baa
parentf7a544bca89c19f29d0abb2a8664b03630fb0889 (diff)
downloadllvm-83d2f0e7993a376c5ffb65e5760e58e72d27daee.zip
llvm-83d2f0e7993a376c5ffb65e5760e58e72d27daee.tar.gz
llvm-83d2f0e7993a376c5ffb65e5760e58e72d27daee.tar.bz2
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. llvm-svn: 370243
-rw-r--r--compiler-rt/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp b/compiler-rt/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp
index d416838..c53a932 100644
--- a/compiler-rt/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp
+++ b/compiler-rt/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() {