llvm-project/lldb/packages/Python/lldbsuite/test/lang
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
..
c This test is now passing on Darwin 2015-11-10 19:07:42 +00:00
cpp Fix some issues with swig & string conversion. 2015-11-18 18:40:16 +00:00
go Fix TestGoFormatters.py. 2015-11-05 02:17:21 +00:00
mixed Remove `use_lldb_suite` from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
objc Fixed another issue with wrong case in #import. 2015-11-06 22:43:55 +00:00
objcxx Tighten up sys.path, and use absolute imports everywhere. 2015-11-03 02:06:18 +00:00