llvm-project/lldb/packages/Python/lldbsuite/test
Zachary Turner 48ef8d4c37 Fix some issues with swig & string conversion.
This patch fixes two issues:

1) Popen needs to be used with universal_newlines=True by default.
   This elicits automatic decoding from bytes -> string in Py3,
   and has no negative effects in other Py versions.
2) The swig typemaps for converting between string and (char*, int)
   did not work correctly when the length of the string was 0,
   indicating an error.  In this case we would try to construct a
   string from uninitialized data.
3) Ironically, the bug mentioned in #2 led to a test passing on
   Windows that was actually broken, because the test was written
   such that the assertion was never even getting checked, so it
   passed by default.  So we additionally fix this test to also
   fail if the method errors.  By fixing this test it's now broken
   on Windows, so we also xfail it.

llvm-svn: 253487
2015-11-18 18:40:16 +00:00
..
android/platform Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
api Re-XFAIL two more tests I missed 2015-11-13 13:37:53 +00:00
arm_emulation Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
attic Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
benchmarks Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
driver/batch_mode Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
example Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
expression_command Fix to solve Bug 23139 & Bug 23560 2015-11-13 10:47:49 +00:00
functionalities Fix some issues with swig & string conversion. 2015-11-18 18:40:16 +00:00
help Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
lang Fix some issues with swig & string conversion. 2015-11-18 18:40:16 +00:00
linux Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
logging Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
macosx Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
make Updated a relative path in Makefile.rules to reflect the new testsuite location. 2015-11-10 21:56:04 +00:00
plugins Tighten up sys.path, and use absolute imports everywhere. 2015-11-03 02:06:18 +00:00
python_api Python 3 - Skip a certain test for a particular (swig,python) combo. 2015-11-16 23:58:20 +00:00
settings Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
source-manager Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
terminal Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
test_runner Python 3 - Use universal_newlines=True in subprocess.Popen. 2015-11-05 01:33:44 +00:00
tools Fix to solve Bug 23139 & Bug 23560 2015-11-13 10:47:49 +00:00
types Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
warnings/uuid Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
.categories Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
Makefile Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
README-TestSuite Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
__init__.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
bench-history Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
blacklist.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
crashinfo.c Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
curses_results.py Fix up curses_results.py for new package specification requirement. 2015-11-09 00:23:01 +00:00
dosep.py Bump up test timeout interval on Darwin from 4 to 6 minutes. 2015-11-11 05:10:07 +00:00
dotest.py Add --curses shortcut for specifying the curses-based test results formatter. 2015-11-09 18:51:04 +00:00
dotest_args.py Add --curses shortcut for specifying the curses-based test results formatter. 2015-11-09 18:51:04 +00:00
dotest_channels.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldb_pylint_helper.py Updated lldb_pylint_helper to work with recent Python package changes. 2015-11-10 20:01:33 +00:00
lldbbench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbcurses.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbinline.py Python 3 - Use the exec function, not the exec statement. 2015-11-06 21:37:21 +00:00
lldbpexpect.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbplatformutil.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbtest.py Fix some issues with swig & string conversion. 2015-11-18 18:40:16 +00:00
lldbtest_config.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
lldbutil.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lock.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
redo.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
test_categories.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
test_results.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00