[compiler-rt] r335747 - [asan] Relax the null_deref.cc test even further
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 27 09:06:16 PDT 2018
Author: vedantk
Date: Wed Jun 27 09:06:15 2018
New Revision: 335747
URL: http://llvm.org/viewvc/llvm-project?rev=335747&view=rev
Log:
[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
Modified:
compiler-rt/trunk/test/asan/TestCases/null_deref.cc
Modified: compiler-rt/trunk/test/asan/TestCases/null_deref.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/null_deref.cc?rev=335747&r1=335746&r2=335747&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/null_deref.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/null_deref.cc Wed Jun 27 09:06:15 2018
@@ -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.
}
More information about the llvm-commits
mailing list