summaryrefslogtreecommitdiff
path: root/test/asan
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-06-27 14:57:59 +0000
committerVedant Kumar <vsk@apple.com>2018-06-27 14:57:59 +0000
commit198f0af91224a1b5590e60ba7e2c26fca56600b3 (patch)
treeda694bede2b506b5c62dbb1da1d76c0c956621c1 /test/asan
parent1747733b229fdae42c9decc743bd6e9af5e4df46 (diff)
[asan] Relax a test which depends on optimized debug info
On some ARM platforms this test depends on debug locations being present on constant materialization code, which was eliminated in r335497. Relax the test to allow two outcomes: the backtrace either contains the right line numbers, or no line numbers. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan')
-rw-r--r--test/asan/TestCases/null_deref.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/null_deref.cc b/test/asan/TestCases/null_deref.cc
index 04576b40e..08ef4ce60 100644
--- a/test/asan/TestCases/null_deref.cc
+++ b/test/asan/TestCases/null_deref.cc
@@ -15,10 +15,10 @@ void NullDeref(int *ptr) {
ptr[10]++; // BOOM
// atos on Mac cannot extract the symbol name correctly. Also, on FreeBSD 9.2
// the demangling function rejects local names with 'L' in front of them.
- // CHECK: {{ #0 0x.* in .*NullDeref.*null_deref.cc:}}[[@LINE-3]]
+ // CHECK: {{ #0 0x.* in .*NullDeref.*null_deref.cc}}{{:15|$}}
}
int main() {
NullDeref((int*)0);
- // CHECK: {{ #1 0x.* in main.*null_deref.cc:}}[[@LINE-1]]
+ // CHECK: {{ #1 0x.* in main.*null_deref.cc}}{{:21|$}}
// CHECK: AddressSanitizer can not provide additional info.
}