summaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/static_members/TestCPPStaticMembers.py
AgeCommit message (Collapse)Author
2023-05-29Revert "[LLDB] Add/Remove xfail for some API tests on Windows"tcwg
This reverts commit 6ea1a0d4fc3823de143a288df2059b48dc01cf72. It again marks XFAIL LLDB tests failing after c384fcd3ea1dad782eaaea89b32fc33c0c3528b8
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
2023-05-03[LLDB] Add/Remove xfail for some API tests on WindowsMuhammad Omair Javaid
This patch add or removes XFAIL decorator from various tests which were marked xfail for windows. since 44363f2 various tests have started passing but introduced a couple of new failures. Weight is in favor of new XPasses and I have removed XFail decorator from them. Also some new tests have started failing for which we need to file separate bugs. I have marked them xfail for now and will add the bug id after investigating the issue. Differential Revision: https://reviews.llvm.org/D149235
2022-08-11[lldb] Remove unused "import unittest2" statementsDave Lee
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
2022-02-14[lldb] Enable test for `getelementptr` const args for WindowsAndy Yankovsky
The test actually passes fine on Windows, since it doesn't use any static members. Follow-up to https://reviews.llvm.org/D113498
2022-02-14[lldb] Add a positive test for `getelementptr` constant argsAndy Yankovsky
The IR interpreter supports const operands to the `GetElementPtr` IR instruction, so it should be able to evaluate expression without JIT. Follow up to https://reviews.llvm.org/D113498 Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D119734
2022-02-09[lldb] Disable failing test on WindowsAndy Yankovsky
Test was introduced in https://reviews.llvm.org/D113498.
2022-02-09[lldb] Constant-resolve operands to `getelementptr`Andy Yankovsky
Operands to `getelementptr` can be constants or constant expressions. Check that all operands can be constant-resolved and resolve them during the evaluation. If some operands can't be resolved as constants -- the expression evaluation will fallback to JIT. Fixes: https://bugs.llvm.org/show_bug.cgi?id=52449 Reviewed By: #lldb, shafik Differential Revision: https://reviews.llvm.org/D113498
2021-05-25[lldb] X-FAIL TestCPPStaticMembers on WindowsRaphael Isemann
This was originally failed because of llvm.org/pr21765 which describes that LLDB 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 we can't lookup static members at all, so let's X-FAIL the test for the right reason.
2021-05-25[lldb] Re-eanble and rewrite TestCPPStaticMembersRaphael Isemann
It's not clear why the whole test got disabled, but the linked bug report has since been fixed and the only part of it that still fails is the test for the too permissive lookup. This re-enables the test, rewrites it to use the modern test functions we have and splits the failing part into its own test that we can skip without disabling the rest.
2020-08-17[lldb] Replace unittest2.expectedFailure with expectedFailure (NFC)Jonas Devlieghere
Rename the existing expectedFailure to expectedFailureIfFn to better describe its purpose and provide an overload for unittest2.expectedFailure in decorators.py.
2020-02-11[lldb][test] Remove symlink for API tests.Jordan Rupprecht
Summary: Moves lldbsuite tests to lldb/test/API. This is a largely mechanical change, moved with the following steps: ``` rm lldb/test/API/testcases mkdir -p lldb/test/API/{test_runner/test,tools/lldb-{server,vscode}} mv lldb/packages/Python/lldbsuite/test/test_runner/test lldb/test/API/test_runner for 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; done for 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; done for 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, JDevlieghere Tags: #lldb Differential Revision: https://reviews.llvm.org/D71151