[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
Remove Python 2 checks from the test suiteWe dropped downstream support for Python 2 in the previous release. Nowthat we have branched for the next release the window where this kind ofchange cou
Remove Python 2 checks from the test suiteWe dropped downstream support for Python 2 in the previous release. Nowthat we have branched for the next release the window where this kind ofchange could introduce conflicts is closing too. Remove Python 2 checksfrom the test suite.Differential revision: https://reviews.llvm.org/D124429
[lldb] Replace asserts on .Success() with assertSuccess()Replace forms of `assertTrue(err.Success())` with `assertSuccess(err)` (added in D82759).* `assertSuccess` prints out the error's message
[lldb] Replace asserts on .Success() with assertSuccess()Replace forms of `assertTrue(err.Success())` with `assertSuccess(err)` (added in D82759).* `assertSuccess` prints out the error's message* `assertSuccess` expresses explicit higher level semantics, both to the reader and for test failure output* `assertSuccess` seems not to be well known, using it where possible will help spread knowledge* `assertSuccess` statements are more succinctDifferential Revision: https://reviews.llvm.org/D119616
[lldb] Fix TestFileHandle.py- remove the decorator which is no longer available in main- remove dependence on revision number, which are not available in all builds
Fixed use of -o and -k in LLDB under Windows when statically compiled with vcruntime.Right now if the LLDB is compiled under the windows with static vcruntime library, the -o and -k commands will n
Fixed use of -o and -k in LLDB under Windows when statically compiled with vcruntime.Right now if the LLDB is compiled under the windows with static vcruntime library, the -o and -k commands will not work.The problem is that the LLDB create FILE* in lldb.exe and pass it to liblldb.dll which is an object from CRT.Since the CRT is statically linked each of these module has its own copy of the CRT with it's own global state and the LLDB should not share CRT objects between them.In this change I moved the logic of creating FILE* out of commands stream from Driver class to SBDebugger.To do this I added new method: SBError SBDebugger::SetInputStream(SBStream &stream)Command to build the LLDB:cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lldb;libcxx" -DLLVM_USE_CRT_RELEASE="MT" -DLLVM_USE_CRT_MINSIZEREL="MT" -DLLVM_USE_CRT_RELWITHDEBINFO="MT" -DPYTHON_HOME:FILEPATH=C:/Python38 -DCMAKE_C_COMPILER:STRING=cl.exe -DCMAKE_CXX_COMPILER:STRING=cl.exe ../llvmCommand which will fail:lldb.exe -o helpSee discord discussion for more details: https://discord.com/channels/636084430946959380/636732809708306432/854629125398724628This revision is for the further discussion.Reviewed By: teemperorDifferential Revision: https://reviews.llvm.org/D104413
[lldb] Remove support for replaying the test suite from a reproducerThis patch removes the infrastructure to replay the test suite from areproducer, as well as the modifications made to the indivi
[lldb] Remove support for replaying the test suite from a reproducerThis patch removes the infrastructure to replay the test suite from areproducer, as well as the modifications made to the individual tests.
[lldb/tests] Removed add_test_categories decorator for python API tests, NFCThere is a .categories file in the python_api directory that makes all nested testsbelong to the category "pyapi". The d
[lldb/tests] Removed add_test_categories decorator for python API tests, NFCThere is a .categories file in the python_api directory that makes all nested testsbelong to the category "pyapi". The decorator is unnecessary for these tests.
[lldb/Test] Fix typo in find-and-replace.
[lldb/Test] Add @skipIfReproducer to tests using lldb::FileSP.lldb::FileSP is a typedef for std::shared_ptr<lldb_private::File> andthe reproducers cannot instrument a lldb_private constructor.
[lldb][test] TestFileHandle: flush the output after write
[lldb][testsuite] Create a SBDebugger instance for each testSome tests set settings and don't clean them up, this leads to side effects in other tests.The patch removes a global debugger instance
[lldb][testsuite] Create a SBDebugger instance for each testSome tests set settings and don't clean them up, this leads to side effects in other tests.The patch removes a global debugger instance with a per-test debugger to avoid such effects.From what I see, lldb.DBG was needed to determine the platform before a test is run,lldb.selected_platform is used for this purpose now. Though, this required adding a new functionto the SBPlatform interface.Differential Revision: https://reviews.llvm.org/D74903
[lldb][test] Remove symlink for API tests.Summary: Moves lldbsuite tests to lldb/test/API.This is a largely mechanical change, moved with the following steps:```rm lldb/test/API/testcasesmkdi
[lldb][test] Remove symlink for API tests.Summary: Moves lldbsuite tests to lldb/test/API.This is a largely mechanical change, moved with the following steps:```rm lldb/test/API/testcasesmkdir -p lldb/test/API/{test_runner/test,tools/lldb-{server,vscode}}mv lldb/packages/Python/lldbsuite/test/test_runner/test lldb/test/API/test_runnerfor d in $(find lldb/packages/Python/lldbsuite/test/* -maxdepth 0 -type d | egrep -v "make|plugins|test_runner|tools"); do mv $d lldb/test/API; donefor d in $(find lldb/packages/Python/lldbsuite/test/tools/lldb-vscode -maxdepth 1 -mindepth 1 | grep -v ".py"); do mv $d lldb/test/API/tools/lldb-vscode; donefor d in $(find lldb/packages/Python/lldbsuite/test/tools/lldb-server -maxdepth 1 -mindepth 1 | egrep -v "gdbremote_testcase.py|lldbgdbserverutils.py|socket_packet_pump.py"); do mv $d lldb/test/API/tools/lldb-server; done```lldb/packages/Python/lldbsuite/__init__.py and lldb/test/API/lit.cfg.py were also updated with the new directory structure.Reviewers: labath, JDevlieghereTags: #lldbDifferential Revision: https://reviews.llvm.org/D71151