Issue 177064
Summary [lldb] Unit tests fail on mac if compiler-rt runtime is enabled
Labels lldb
Assignees
Reporter ashgti
    I am building lldb with:

```
-DLLVM_ENABLE_PROJECTS='clang;lld;lldb;clang-tools-extra;cross-project-tests'
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;compiler-rt;libunwind'
```

As a result, when I run some tests, like https://github.com/llvm/llvm-project/blob/main/lldb/test/API/functionalities/ubsan/basic/TestUbsanBasic.py the test fails because the stack trace includes debug symbols for the compiler-rt. 

Specifically, https://github.com/llvm/llvm-project/blob/05f5ce5c6943744aecfa977ddf95790ba277bd5e/lldb/test/API/functionalities/ubsan/basic/TestUbsanBasic.py#L55 is incorrect, its not simply that the platform is Darwin, but that we have debug symbols for `libclang_rt.ubsan_osx_dynamic.dylib`.

I noticed this after fixing `skipUnlessUndefinedBehaviorSanitizer` in #176463 but I'm not exactly sure how to determine if we have debug symbols for libclang_rt or not.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to