teak-llvm/lldb/packages/Python/lldbsuite/test
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
..
android/platform [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
api [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
arm [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
attic
benchmarks [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
driver/batch_mode [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
expression_command [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
functionalities [Formatters] Temporarily disable libc++ std::function formatter due to performance issue 2019-08-02 18:16:04 +00:00
help [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
iohandler/completion [lldb][NFC] Add basic IOHandler completion test 2019-08-13 12:12:19 +00:00
issue_verification Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lang Revert "[lldb] Fix dynamic_cast by no longer failing on variable without metadata" 2019-08-12 20:08:05 +00:00
linux [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
logging [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
macosx [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
make [lldb][test_suite] skip tests of libstdcpp on Android and clean up 2019-07-23 00:28:26 +00:00
plugins [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
python_api [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr 2019-08-14 08:11:20 +00:00
quit Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
sample_test [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
settings [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
source-manager [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
terminal [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
test_runner [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
tools Update Python tests for lldb-server on Windows 2019-08-14 00:14:15 +00:00
types [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
warnings/uuid Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
__init__.py
.categories
bench.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
concurrent_base.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
configuration.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
darwin_log.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
decorators.py Fix skipIfSanitized decorator on macOS 2019-08-01 18:35:40 +00:00
dotest_args.py [dotest] Remove multiprocessing 2019-07-30 16:42:47 +00:00
dotest.py Update Python tests for lldb-server on Windows 2019-08-14 00:14:15 +00:00
lldb_pylint_helper.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldbbench.py
lldbcurses.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
lldbdwarf.py Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
lldbinline.py [testsuite] Fix TestUnicodeString to work with Py2 and Py3. 2019-02-20 00:54:07 +00:00
lldbpexpect.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
lldbplatform.py [dotest] Remove dead code 2019-07-26 01:58:18 +00:00
lldbplatformutil.py [dotest] Remove dead code 2019-07-26 01:58:18 +00:00
lldbtest_config.py [dotest] Add the ability to set environment variables for the inferior. 2019-06-26 16:12:08 +00:00
lldbtest.py [API] Have SBCommandReturnObject::GetOutput/Error return "" instead of nullptr 2019-08-14 08:11:20 +00:00
lldbutil.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
lock.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
Makefile
README-TestSuite Reflow readme 2018-12-17 21:18:12 +00:00
redo.py
test_categories.py [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
test_result.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00