diff options
author | Vedant Kumar <vsk@apple.com> | 2018-06-27 16:06:15 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-06-27 16:06:15 +0000 |
commit | fa7d242979c1f7e583913ae81b763c807690136f (patch) | |
tree | c8ab58a248639fe7f2759844e8ad3807d2fe9327 /test/asan/TestCases | |
parent | 198f0af91224a1b5590e60ba7e2c26fca56600b3 (diff) |
[asan] Relax the null_deref.cc test even further
On Darwin/x86_64, asan may report the crashing line of NullDeref as line
19 (i.e the closing brace of the function), whereas on other targets we
see line 15 ("ptr[10]++").
The optimized debug info here isn't reliable enough to check.
rdar://problem/41526369
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases')
-rw-r--r-- | test/asan/TestCases/null_deref.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/null_deref.cc b/test/asan/TestCases/null_deref.cc index 08ef4ce60..222c526fd 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}}{{:15|$}} + // CHECK: {{ #0 0x.* in .*NullDeref.*null_deref.cc}} } int main() { NullDeref((int*)0); - // CHECK: {{ #1 0x.* in main.*null_deref.cc}}{{:21|$}} + // CHECK: {{ #1 0x.* in main.*null_deref.cc}} // CHECK: AddressSanitizer can not provide additional info. } |