summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Richardson <arichardson.kde@gmail.com>2019-08-27 21:10:47 +0000
committerAlexander Richardson <arichardson.kde@gmail.com>2019-08-27 21:10:47 +0000
commitbffbe2bbbe6425a6441df809a870f4c81a08fc74 (patch)
tree9b7558643a36d2fb675a103e3049aec45c1e0fe0
parent67188fd9f6cc3497484c321bfc78776ae612aba2 (diff)
downloadcompiler-rt-bffbe2bbbe6425a6441df809a870f4c81a08fc74.tar.gz
Fix asan-symbolize-bad-path.cpp on Darwin
I accidentally made the CHECK line stricter when committing D65322. While it happens to work for Linux and FreeBSD, it broke on Darwin. This commit restores the previous behaviour. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@370110 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp b/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp
index d33c3d7ab..d41683872 100644
--- a/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp
+++ b/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp
@@ -1,7 +1,8 @@
// Test that asan_symbolize does not hang when provided with an non-existing
// path.
// RUN: echo '#0 0xabcdabcd (%t/bad/path+0x1234)' | %asan_symbolize | FileCheck %s -check-prefix CHECK-BAD-FILE
-// CHECK-BAD-FILE: #0 0xabcdabcd in ?? ??:0
+// 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-EMPTY:
// Also test that asan_symbolize doesn't assert on an invalid address with a valid file: