[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 ...
[lldb] Enable test for `getelementptr` const args for WindowsThe test actually passes fine on Windows, since it doesn't use anystatic members.Follow-up to https://reviews.llvm.org/D113498
[lldb] Add a positive test for `getelementptr` constant argsThe IR interpreter supports const operands to the `GetElementPtr` IRinstruction, so it should be able to evaluate expression without JIT
[lldb] Add a positive test for `getelementptr` constant argsThe IR interpreter supports const operands to the `GetElementPtr` IRinstruction, so it should be able to evaluate expression without JIT.Follow up to https://reviews.llvm.org/D113498Reviewed By: shafikDifferential Revision: https://reviews.llvm.org/D119734
[lldb] Disable failing test on WindowsTest was introduced in https://reviews.llvm.org/D113498.
[lldb] Constant-resolve operands to `getelementptr`Operands to `getelementptr` can be constants or constant expressions. Checkthat all operands can be constant-resolved and resolve them during the
[lldb] Constant-resolve operands to `getelementptr`Operands to `getelementptr` can be constants or constant expressions. Checkthat all operands can be constant-resolved and resolve them during theevaluation. If some operands can't be resolved as constants -- the expressionevaluation will fallback to JIT.Fixes: https://bugs.llvm.org/show_bug.cgi?id=52449Reviewed By: #lldb, shafikDifferential Revision: https://reviews.llvm.org/D113498
[lldb] X-FAIL TestCPPStaticMembers on WindowsThis was originally failed because of llvm.org/pr21765 which describes thatLLDB can't call a debugee's functions, but I removed the (unnecessary)funct
[lldb] X-FAIL TestCPPStaticMembers on WindowsThis was originally failed because of llvm.org/pr21765 which describes thatLLDB can't call a debugee's functions, but I removed the (unnecessary)function call in the rewrite. It seems that the actual bug here is that wecan't lookup static members at all, so let's X-FAIL the test for the rightreason.
[lldb] Re-eanble and rewrite TestCPPStaticMembersIt's not clear why the whole test got disabled, but the linked bug reporthas since been fixed and the only part of it that still fails is the test
[lldb] Re-eanble and rewrite TestCPPStaticMembersIt's not clear why the whole test got disabled, but the linked bug reporthas since been fixed and the only part of it that still fails is the testfor the too permissive lookup. This re-enables the test, rewrites it to usethe modern test functions we have and splits the failing part into itsown test that we can skip without disabling the rest.
[lldb] Replace unittest2.expectedFailure with expectedFailure (NFC)Rename the existing expectedFailure to expectedFailureIfFn to betterdescribe its purpose and provide an overload forunittest2.ex
[lldb] Replace unittest2.expectedFailure with expectedFailure (NFC)Rename the existing expectedFailure to expectedFailureIfFn to betterdescribe its purpose and provide an overload forunittest2.expectedFailure in decorators.py.
[lldb] Remove license headers from all test source filesSummary:Around a third of our test sources have LLVM license headers. This patch removes those headers from all testsources and also fixes
[lldb] Remove license headers from all test source filesSummary:Around a third of our test sources have LLVM license headers. This patch removes those headers from all testsources and also fixes any tests that depended on the length of the license header.The reasons for this are:* A few tests verify line numbers and will start failing if the number of lines in the LLVM license header changes. Once I landed my patch for valid SourceLocations in debug info we will probably have even more tests that verify line numbers.* No other LLVM project is putting license headers in its test files to my knowledge.* They make the test sources much more verbose than they have to be. Several tests have longer license headers than the actual test source.For the record, the following tests had their line numbers changed to pass with the removal of the license header: lldb-api :: functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py lldb-shell :: Reproducer/TestGDBRemoteRepro.test lldb-shell :: Reproducer/TestMultipleTargets.test lldb-shell :: Reproducer/TestReuseDirectory.test lldb-shell :: ExecControl/StopHook/stop-hook-threads.test lldb-shell :: ExecControl/StopHook/stop-hook.test lldb-api :: lang/objc/exceptions/TestObjCExceptions.pyReviewers: #lldb, espindola, JDevlieghereReviewed By: #lldb, JDevlieghereSubscribers: emaste, aprantl, arphaman, JDevlieghere, lldb-commitsTags: #lldbDifferential Revision: https://reviews.llvm.org/D74839
[lldb] Remove some unnecessary includes from test sources
[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