[compiler-rt][test] Fix flake in symbolize_stack test
authorPaul Kirth <paulkirth@google.com>
Mon, 23 May 2022 18:22:40 +0000 (18:22 +0000)
committerPaul Kirth <paulkirth@google.com>
Wed, 25 May 2022 19:02:30 +0000 (19:02 +0000)
commit7f5439945b1f07535ea667ec31a82a9d9a2a8666
tree11bbc3e69f2d6012689fca43f7db71d11362a2a0
parentbbad981dab49851ab0b94fbb27925fe1c80f888b
[compiler-rt][test] Fix flake in symbolize_stack test

Addresses tests flakes described in
https://github.com/llvm/llvm-project/issues/55460

The test being updated can fail in FileCheck to match when given long
enough stack traces. This can be problematic when file system paths
become long enough to cause the majority of the long function name to
become truncated. We found in our CI that the truncated output would
often fail to match, thereby causing the test to fail when it should not.

Here we change the test to match on sybolizer output that should be more
reliable than matching inside the long function name.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D126102
compiler-rt/test/sanitizer_common/TestCases/symbolize_stack.cpp