teak-llvm/lldb/packages/Python/lldbsuite/test/lang/cpp
Zachary Turner e5a7990dbe Always write the session file in UTF-8.
This patch attempts to solve the Python 2 / Python 3 incompatibilities by
introducing a new `encoded_file` abstraction that we use instead of
`io.open()`.  The problem with the builtin implementation of `io.open` is
that `read` and `write` accept and return `unicode` objects, which are not
always convenient to work with in Python 2.  We solve this by making
`encoded_file.open()` return the same object returned by `io.open()` but
with hooked `read()` and `write()` methods.  These hooked methods will
accept binary or text data, and conditionally convert what it gets to a
`unicode` object using the correct encoding.  When calling `read()` it
also does any conversion necessary to convert the output back into the
native `string` type of the running python version.

Differential Revision: http://reviews.llvm.org/D16736

llvm-svn: 259379
2016-02-01 18:12:59 +00:00
..
auto XFail TestCPPAuto on Windows until we can find the root problem. 2016-01-27 17:03:25 +00:00
bool
breakpoint-commands Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
call-function
chained-calls
char1632_t Always write the session file in UTF-8. 2016-02-01 18:12:59 +00:00
class_static Remove assumptions that thread 0 is always the main thread. 2016-01-21 21:07:30 +00:00
class_types Remove assumptions that thread 0 is always the main thread. 2016-01-21 21:07:30 +00:00
diamond Remove assumptions that thread 0 is always the main thread. 2016-01-21 21:07:30 +00:00
dynamic-value Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
enum_types Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
exceptions Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
frame-var-anon-unions Fix up LLDB for a change in the way clang represents anonymous unions such that the 'frame variable' command can still find the members of such union as if they were top-level variables in the current scope 2015-11-19 22:28:58 +00:00
global_operators
incomplete-types Trying to submit 254476 one more time. This implement -gmodule debugging support. 2015-12-08 01:02:08 +00:00
limit-debug-info Revert "Temporarily skip TestWithLimitDebugInfo on Darwin and OS X" 2015-12-14 22:04:20 +00:00
namespace XFail TestNamespaceLookup tests on Windows. 2016-01-22 23:05:29 +00:00
nsimport XFAIL TestCppNsImport on FreeBSD 2015-12-22 19:10:09 +00:00
overloaded-functions
rdar12991846 Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
rvalue-references
scope
signed_types NFC. Corrects name of test class and a comment. 2016-01-21 21:10:00 +00:00
static_members Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
static_methods
stl Remove assumptions that thread 0 is always the main thread. 2016-01-21 21:07:30 +00:00
this
unique-types Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
unsigned_types Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
virtual Fix some issues with swig & string conversion. 2015-11-18 18:40:16 +00:00
wchar_t Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00