summaryrefslogtreecommitdiffstats
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
commit43eec242e0c031b5548eb3a260b9db4b8b0daf7f (patch)
treedb34962e455ce05518064cb73558ad82a6019c94
parentd00ed8e2c20014044e42fb7b9380dc9e297cd66f (diff)
downloadbcm5719-llvm-43eec242e0c031b5548eb3a260b9db4b8b0daf7f.tar.gz
bcm5719-llvm-43eec242e0c031b5548eb3a260b9db4b8b0daf7f.zip
[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. llvm-svn: 335741
-rw-r--r--compiler-rt/test/asan/TestCases/null_deref.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/null_deref.cc b/compiler-rt/test/asan/TestCases/null_deref.cc
index 04576b40eb2..08ef4ce6088 100644
--- a/compiler-rt/test/asan/TestCases/null_deref.cc
+++ b/compiler-rt/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.
}
OpenPOWER on IntegriCloud