llvm-project/lldb/test/API/lang/cpp
Dave Lee 2bcff220bf [lldb] Set result error state in 'frame variable'
Ensure that errors in `frame variable` are reflected in result object.

The statistics for `frame variable` show invocations as being successful, even
when executing one of the error paths.

This change replaces `result.GetErrorStream()` with `result.AppendError()`,
which also sets the status to `eReturnStatusFailed`.

Differential Revision: https://reviews.llvm.org/D116788

(cherry picked from commit 2c7d10c412)
2022-01-09 13:26:30 -08:00
..
accelerator-table [lldb] Improve assert message in TestCPPAccelerator 2021-10-20 12:04:28 +02:00
alignas_base_class [RecordLayout] Fix ItaniumRecordLayoutBuilder so that is grabs the correct bases class offsets from the external source 2020-07-08 10:07:15 -07:00
auto [lldb] Remove GCC XFAIL for TestCPPAuto and TestClassTemplateParameterPack 2021-06-11 23:22:26 +02:00
bitfields [lldb] Update field offset/sizes when encountering artificial members such as vtable pointers 2021-10-30 13:22:21 +02:00
bool
break-on-initializers [lldb][NFC] Remove sample test boilerplate from TestBreakOnCPP11Initializers 2021-05-19 15:22:11 +02:00
breakpoint-commands [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
breakpoint_in_member_func_w_non_primitive_params
call-function
chained-calls
char8_t [lldb] Split TestCxxChar8_t 2021-12-01 16:58:43 -08:00
char1632_t Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
class-loading-via-member-typedef [lldb] Add a test for class loading via member typedefs 2021-11-01 15:58:45 +01:00
class-template-non-type-parameter-pack [lldb] X-FAIL class template parameter pack tests on Windows 2020-12-03 00:38:05 +01:00
class-template-parameter-pack [lldb] Remove GCC XFAIL for TestCPPAuto and TestClassTemplateParameterPack 2021-06-11 23:22:26 +02:00
class-template-type-parameter-pack [lldb] X-FAIL class template parameter pack tests on Windows 2020-12-03 00:38:05 +01:00
class_static Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
class_types [lldb/test] Added lldbutil function to test a breakpoint 2021-11-17 08:37:30 +00:00
complete-type-check [lldb] Make SBType::IsTypeComplete more consistent by forcing the loading of definitions 2021-10-30 13:28:27 +02:00
const_this [lldb] Rewrite and extend TestConstThis 2021-10-06 14:51:00 +02:00
constructors [lldb] Skip tests failing with GCC due to LLDB not being able to call constructors 2021-06-25 11:33:09 +02:00
covariant-return-types [lldb] Fix typos. NFC. 2021-05-31 06:48:57 +07:00
crtp [lldb] Add a test for CRTP 2021-10-13 17:15:02 +02:00
default-template-args [lldb] Give TestDefaultTemplateArgs a unique class name 2020-11-30 14:41:35 -08:00
dereferencing_references [lldb] Unwrap the type when dereferencing the value 2021-11-15 14:48:19 +01:00
diamond [lldb] Rewrite TestDiamond and document some bugs. 2021-10-14 20:32:07 +02:00
dynamic-value [lldb] Remove lldbtest.getBuildFlags 2021-12-30 12:19:24 +01:00
dynamic-value-same-basename
elaborated-types [lldb] Fix that running a top level expression without a process fails with a cryptic error 2021-02-11 17:07:11 +01:00
enum_types [lldb] [test] Remove xfail from tests that pass on FreeBSD 2020-11-03 22:01:59 +01:00
exceptions [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
extern_c
forward-declared-template-specialization [lldb] Make the ClassTemplateDecl merging logic in TypeSystemClang respect template parameters 2021-06-15 19:25:07 +02:00
frame-var-anon-unions [lldb] Set result error state in 'frame variable' 2022-01-09 13:26:30 -08:00
function-local-class [lldb][NFC] Add some tests for function-local classes and document some bugs 2021-09-09 14:12:02 +02:00
function-qualifiers
function-template-parameter-pack
function_refs
global_operators [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
global_variables [lldb] Fix lookup for global constants in namespaces 2021-11-23 12:53:03 +01:00
gmodules [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
gmodules-templates
incompatible-class-templates [lldb] Make the ClassTemplateDecl merging logic in TypeSystemClang respect template parameters 2021-06-15 19:25:07 +02:00
incomplete-types
inlines [lldb/test] Added lldbutil function to test a breakpoint 2021-11-17 08:37:30 +00:00
keywords_enabled [lldb] Add support for using variables with C++ keywords names in non-C++ expressions 2020-11-16 16:04:44 +01:00
lambdas
limit-debug-info [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
llvm-style
member-and-local-vars-with-same-name [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
modules-import Skip tests on older versions of clang 2021-11-16 09:09:56 -08:00
multiple-inheritance [lldb][NFC] Fix a typo in TestCppMultipleInheritance 2020-12-10 10:56:46 +01:00
namespace [lldb] [test] Remove xfail from tests that pass on FreeBSD 2020-11-03 22:01:59 +01:00
namespace_conflicts
namespace_definitions [lldb/test] Added lldbutil function to test a breakpoint 2021-11-17 08:37:30 +00:00
nested-class-other-compilation-unit
non-type-template-param Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
nsimport [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
offsetof
operator-overload [lldb] Modernize TestOperatorOverload.py asserts 2020-06-30 11:38:42 +02:00
operators [lldb] Skip tests failing with GCC due to LLDB not being able to call constructors 2021-06-25 11:33:09 +02:00
overloaded-functions
pointer_to_member_type_depending_on_parent_size [lldb] Skip TestPointerToMemberTypeDependingOnParentSize on Windows and GCC 2021-04-26 18:55:54 +02:00
printf Reland "[lldb/DWARF] Only match mangled name in full-name function lookup (with accelerators)" 2021-08-04 12:50:13 +02:00
reference-to-outer-type Revert "[lldb] Disable minimal import mode for RecordDecls that back FieldDecls" 2021-11-10 10:38:01 -08:00
rvalue-references
scope [lldb] [testsuite] Fix a regression of TestCppScope.py 2020-04-18 10:46:32 +02:00
scratch-context-merging/structs [lldb] Add test for struct merging in scratch ASTContext 2021-10-15 17:20:03 +02:00
signed_types [lldb/test] Added lldbutil function to test a breakpoint 2021-11-17 08:37:30 +00:00
sizeof [lldb][NFC] Add size tests for empty records with alignment and with empty members 2021-08-30 16:38:13 +02:00
static_member_type_depending_on_parent_size [lldb] Don't recursively load types of static member variables in the DWARF AST parser 2021-04-12 14:37:07 +02:00
static_members [lldb] X-FAIL TestCPPStaticMembers on Windows 2021-05-25 13:10:19 +02:00
static_methods [lldb][NFC] Modernize TestCPPStaticMethods 2020-05-20 12:27:44 +02:00
std-function-step-into-callable
stl [lldb] [test] Update test status for NetBSD 2020-12-20 11:32:43 +01:00
struct_with_keyword_name [lldb] Add support for using variables with C++ keywords names in non-C++ expressions 2020-11-16 16:04:44 +01:00
subst_template_type_param [lldb] Add SubstTemplateTypeParm to RemoveWrappingTypes 2020-08-11 14:31:47 +02:00
symbols
template [lldb] Convert more assertTrue to assertEqual (NFC) 2021-02-03 21:15:08 -08:00
template-arguments [lldb] Explicitly test the template argument SB API 2020-10-15 11:17:43 +02:00
template-function [lldb] Remove template parameters from FunctionTemplateDecl names 2020-03-17 11:00:23 -07:00
template-specialization-type [lldb] Desugar template specializations 2020-07-16 09:01:01 +02:00
this [lldb] [test] Update test status for NetBSD 2020-12-20 11:32:43 +01:00
this_class_type_mixing [lldb] Test compatibility between a class type from a member function expr and its original version 2020-06-09 15:48:00 +02:00
thread_local [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
trivial_abi [lldb] [test] Update XFAILs for FreeBSD/aarch64 2021-03-10 18:36:19 +01:00
type_lookup
typedef [lldb] Rewrite/expand TestCppTypedef and document a lookup bug. 2021-10-07 13:30:03 +02:00
typeof [lldb] Make expect_expr fall back to the dummy target if no target is selected 2020-07-15 13:56:00 +02:00
unicode-literals
unique-types
unsigned_types
virtual-functions [lldb][NFC] Fix small format error in TestCppVirtualFunctions 2021-08-11 12:26:56 +02:00
virtual-overload
wchar_t [lldb] Add expect_var_path to test variable path results 2020-11-12 16:14:48 +01:00