[compiler-rt] r335741 - [asan] Relax a test which depends on optimized debug info

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 07:57:59 PDT 2018


Author: vedantk
Date: Wed Jun 27 07:57:59 2018
New Revision: 335741

URL: http://llvm.org/viewvc/llvm-project?rev=335741&view=rev
Log:
[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.

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=335741&r1=335740&r2=335741&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/null_deref.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/null_deref.cc Wed Jun 27 07:57:59 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:}}[[@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.
 }




More information about the llvm-commits mailing list