[Lldb-commits] [lldb] [lldb] Split TestGdbRemoteFork test to avoid timeout (PR #129614)
David Peixotto via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 10 16:50:50 PDT 2025
dmpots wrote:
> You could make the test binary a cmake dependency, see `lldb/test/CMakeLists.txt`. Perhaps in:
>
> ```
> if(TARGET lldb-server)
> add_lldb_test_dependency(lldb-server)
> endif()
> ```
Just so it's clear, it is not lldb-server itself that is the slow dependency, but the cpp file in the test directory. I think you mean we could create a new binary from the test file.
Pulling out the [cpp file](https://github.com/llvm/llvm-project/blob/main/lldb/test/API/tools/lldb-server/main.cpp) into a separate tool might work. I don't know if there are any issues trying that. It's now building with the just-built clang binaries hooks into the dotest build system which seems to allow more flexibility in building it in different ways at test runtime (although I'm not sure we actually rely on that flexibility).
https://github.com/llvm/llvm-project/pull/129614
More information about the lldb-commits
mailing list