[lldb/test] Add ability to specify environment when spawning processes
authorPavel Labath <pavel@labath.sk>
Mon, 27 Sep 2021 12:12:29 +0000 (14:12 +0200)
committerPavel Labath <pavel@labath.sk>
Tue, 28 Sep 2021 12:13:50 +0000 (14:13 +0200)
commit9413ead7bcbaf5d8876ee484256df65c2846c5c9
tree677bc68cbe20b17d934abf0a385ada62d94817a5
parent156cb4cc64bec2b72aad9848f8181b338ff19ebc
[lldb/test] Add ability to specify environment when spawning processes

We only had that ability for regular debugger launches. This meant that
it was not possible to use the normal dlopen patterns in attach tests.
This fixes that.
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/test/API/functionalities/load_after_attach/TestLoadAfterAttach.py
lldb/test/API/functionalities/load_after_attach/main.cpp