summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/sbenvironment
AgeCommit message (Collapse)Author
2023-05-25[NFC][Py Reformat] Reformat python files in lldbJonas Devlieghere
This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black` (23.1.0). If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run `git checkout --ours <yourfile>` and then reformat it with black. RFC: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Differential revision: https://reviews.llvm.org/D151460
2022-11-21[test] Remove named function arguments from TestSBEnvironmentJordan Rupprecht
This is not available in all versions of swig 3.
2022-06-17[lldb][tests] Automatically call compute_mydir (NFC)Dave Lee
Eliminate boilerplate of having each test manually assign to `mydir` by calling `compute_mydir` in lldbtest.py. Differential Revision: https://reviews.llvm.org/D128077
2021-02-08[lldb/tests] Removed add_test_categories decorator for python API tests, NFCTatyana Krasnukha
There is a .categories file in the python_api directory that makes all nested tests belong to the category "pyapi". The decorator is unnecessary for these tests.
2020-08-04[lldb/Test] Skip tests that try to get the remote environmentJonas Devlieghere
We don't support getting the remote environment. The gdb remote protocol has no packet for that.
2020-07-23Recommit "[lldb/API] Overwrite variables with ↵Pavel Labath
SBLaunchInfo::SetEnvironment(append=true)" The patch was reverted 27d52cd86a2c because of failures in TestWeakSymbols.py. These have now been addressed in D83552. The original commit message was: This function was documented to overwrite entries with D76111, which was adding a couple of similar functions. However, this function (unlike the functions added in that patch) was/is not actually overwriting variables -- any pre-existing variables would get ignored. This behavior does not seem to be intentional. In fact, before the refactor in D41359, this function could introduce duplicate entries, which could have very surprising effects both inside lldb and on other applications (some applications would take the first value, some the second one; in lldb, attempting to unset a variable could make the second variable become active, etc.). Overwriting seems to be the most reasonable behavior here, so change the code to match documentation. Differential Revision: https://reviews.llvm.org/D83306
2020-07-08Revert "[lldb/API] Overwrite variables with ↵Davide Italiano
SBLaunchInfo::SetEnvironment(append=true)" This reverts commit 695b33a56919af8873eecb47cb83fa17a271e99f beacuse it broke the macOS bot.
2020-07-08[lldb/API] Overwrite variables with SBLaunchInfo::SetEnvironment(append=true)Pavel Labath
Summary: This function was documented to overwrite entries with D76111, which was adding a couple of similar functions. However, this function (unlike the functions added in that patch) was/is not actually overwriting variables -- any pre-existing variables would get ignored. This behavior does not seem to be intentional. In fact, before the refactor in D41359, this function could introduce duplicate entries, which could have very surprising effects both inside lldb and on other applications (some applications would take the first value, some the second one; in lldb, attempting to unset a variable could make the second variable become active, etc.). Overwriting seems to be the most reasonable behavior here, so change the code to match documentation. Reviewers: clayborg, wallace, jingham Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D83306
2020-03-23Create basic SBEnvironment classWalter Erquinigo
2020-03-23Revert "Create basic SBEnvironment class"Walter Erquinigo
This reverts commit fd868f517d2c5ca8c0f160dbec0857b14ecf74c1.
2020-03-23Create basic SBEnvironment classWalter Erquinigo
2020-03-20Revert "Create basic SBEnvironment class"Walter Erquinigo
This reverts commit 34c0759f846447454714c8faa0e1753a8713637b.
2020-03-20Create basic SBEnvironment classWalter Erquinigo
Summary: Inspired by https://reviews.llvm.org/D74636, I'm introducing a basic version of Environment in the API. More functionalities can be added as needed. Reviewers: labath, clayborg Subscribers: mgorny, lldb-commits, diazhector98 Tags: #lldb Differential Revision: https://reviews.llvm.org/D76111
2020-03-20Temporarily Revert "Create basic SBEnvironment class"Adrian Prantl
while investigating bot breakage. This reverts commit 2dec82652e4b6424e46e7bd674cb6404e01e218e.
2020-03-20Create basic SBEnvironment classWalter Erquinigo
Summary: Inspired by https://reviews.llvm.org/D74636, I'm introducing a basic version of Environment in the API. More functionalities can be added as needed. Reviewers: labath, clayborg Subscribers: mgorny, lldb-commits, diazhector98 Tags: #lldb Differential Revision: https://reviews.llvm.org/D76111