teak-llvm/lldb/packages/Python/lldbsuite/test/python_api
Pavel Labath 72ef113d40 [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr
Summary:
It seems this was an unintended side-effect of D26698. AFAICT, these
functions did return an empty string before that patch, and the patch
contained code which attempted to ensure that, but those efforts were
negated by ConstString::AsCString, which by default returns a nullptr
even for empty strings.

This patch:
- fixes the GetOutput/Error methods to really return empty strings
- adds and explicit test for that
- removes a workaround in lldbtest.py, which was masking this problem
  from our other tests

Reviewers: jingham, clayborg

Subscribers: zturner, lldb-commits

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

llvm-svn: 368806
2019-08-14 08:11:20 +00:00
..
breakpoint [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
class_members [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
debugger [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
default-constructor [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
disassemble-raw-data [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
event [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
exprpath_synthetic [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
file_handle Revert r317182 for https://reviews.llvm.org/D39128 2017-11-02 03:17:07 +00:00
findvalue_duplist [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
formatters [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
frame [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
function_symbol [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
hello_world [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
interpreter [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr 2019-08-14 08:11:20 +00:00
lldbutil [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
module_section [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
name_lookup [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
objc_type [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
process [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
rdar-12481949 [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
sbdata [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
sblaunchinfo Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +00:00
sbstructureddata [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
sbtype_typeclass [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
sbvalue_const_addrof Revert "Make lldbinline.py regenerate the Makefile each time it builds." 2016-06-07 21:29:46 +00:00
sbvalue_persist [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
section Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
signals [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
symbol-context [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
target [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
thread [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
type [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
value [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
value_var_update [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
watchpoint [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
.categories