[all-commits] [llvm/llvm-project] 10fd55: [lldb] Make expect_expr fall back to the dummy tar...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Wed Jul 15 04:56:34 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 10fd550d308d5dbcf7a3068f1f76d5f0f1a56661
https://github.com/llvm/llvm-project/commit/10fd550d308d5dbcf7a3068f1f76d5f0f1a56661
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2020-07-15 (Wed, 15 Jul 2020)
Changed paths:
M lldb/packages/Python/lldbsuite/test/lldbtest.py
A lldb/test/API/lang/cpp/typeof/TestTypeOfDeclTypeExpr.py
R lldb/test/Shell/Expr/TestTypeOfDeclTypeExpr.test
Log Message:
-----------
[lldb] Make expect_expr fall back to the dummy target if no target is selected
Summary:
Currently expect_expr will not run the expression if no target is selected. This
patch changes this behavior so that expect_expr will instead fall back to the
dummy target similar to what the `expression` command is doing. This way we
don't have to compile an empty executable to be able to use `expect_expr` (which
is a waste of resources for tests that just test generic type system features).
As a test I modernized the TestTypeOfDeclTypeExpr into a Python test +
expect_expr (as it relied on the dummy target fallback of the expression
command).
Reviewers: labath, JDevlieghere
Reviewed By: labath
Subscribers: abidh
Differential Revision: https://reviews.llvm.org/D83388
More information about the All-commits
mailing list