[compiler-rt] r370021 - Relax test introduced in D65322

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 23:50:36 PDT 2019


Author: arichardson
Date: Mon Aug 26 23:50:36 2019
New Revision: 370021

URL: http://llvm.org/viewvc/llvm-project?rev=370021&view=rev
Log:
Relax test introduced in D65322

It is possible that addr2line returns a valid function and file name for
the passed address on some build configuations.
The test is only checking that asan_symbolize doesn't assert any more when
passed a valid file with an invalid address so there is no need to check
that it can't find a valid function name.
This should fix http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux

Modified:
    compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp

Modified: compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp?rev=370021&r1=370020&r2=370021&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/asan-symbolize-bad-path.cpp Mon Aug 26 23:50:36 2019
@@ -6,8 +6,8 @@
 
 // Also test that asan_symbolize doesn't assert on an invalid address with a valid file:
 // RUN: %clangxx_asan -O0 %s -o %t
-// RUN: echo '#0 0xabcdabcd (%t+0x0)' | %asan_symbolize | FileCheck %s -check-prefix CHECK-BAD-ADDR
-// CHECK-BAD-ADDR: #0 0xabcdabcd in ??
+// RUN: echo '#0 0xabcdabcd (%t+0xabcdabcd)' | %asan_symbolize | FileCheck %s -check-prefix CHECK-BAD-ADDR
+// CHECK-BAD-ADDR: #0 0xabcdabcd in
 // CHECK-BAD-ADDR-EMPTY:
 
 int main() {




More information about the llvm-commits mailing list