[lldb] Fix TestErrorMessages test on standalone builds by adding lldb-server substitution
authorRaphael Isemann <teemperor@gmail.com>
Tue, 10 Nov 2020 14:25:08 +0000 (15:25 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 10 Nov 2020 14:26:19 +0000 (15:26 +0100)
commitc50faf5c9d7ca7a62cd59516c7de305b73f2455c
tree3bd0b91a73993d0a7ee7fbd4f267a4ee7a66b588
parentf7eac51b9b3f780c96ca41913293851c5acb465b
[lldb] Fix TestErrorMessages test on standalone builds by adding lldb-server substitution

It seems that TestErrorMessages.test is failing on the standalone + Xcode builds
as lldb-server executable can't be found by lit's default PATH search. I assume
invoking lldb-server via a lit substitution gets this working again as
everything else is working, so that's what this patch is doing.

I had to add the lldb-server substitution as the test seems lldb-server specific
and we don't want it to default to debugserver on Darwin.

Using a substitution also seems in general like a good idea so that the commands
lit is printing on failure are using the full path to lldb-server and can be
re-run in a terminal.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D91155
lldb/test/Shell/helper/toolchain.py
lldb/test/Shell/lldb-server/TestErrorMessages.test