This patch adds a dotest flag for setting environment variables for the inferior. This is different from the current --env flag, which sets variables in the debugger's environment. This allows us to set things like LD_LIBRARY_PATH for testing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lldb/packages/Python/lldbsuite/test/lldbtest.py | ||
---|---|---|
1861 ↗ | (On Diff #206523) | env or settings set target.env-vars? On Windows, where spaces in paths are common, this works: (lldb) settings set target.env-vars "MY_PATH=C:\Program Files\stuff" but this doesn't: (lldb) env "MY_PATH=C:\Program Files\stuff" |
lldb/packages/Python/lldbsuite/test/lldbtest.py | ||
---|---|---|
1861 ↗ | (On Diff #206523) | I've updated the diff, but this sounds more like a bug in the alias? |
Comment Actions
The LGTM, but I wasn't nominated as a reviewer, and I was mostly looking at it from the point of Windows compatibility.