llvm-project/lldb/unittests
Tim Hammerquist 5706f1e6f6 Fix VASprintfTest.cpp for Darwin, add checks
Summary:
The EncodingError test ensures that trying to encode a multibyte wchar
with a given codepage fails. If setlocale() fails, the encoding is
performed using the current locale, which may or may not fail.

This patch asserts that both setlocale() operations are successful, as
well as falling back to a widely available unibyte encoding for
non-Windows systems.

<rdar://problem/33782806>

Reviewers: zturner, labath, lhames

Reviewed By: zturner

Subscribers: lldb-commits

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

llvm-svn: 310499
2017-08-09 17:27:02 +00:00
..
Breakpoint Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Core Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
Editline Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Expression Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Host Add pretty-printer for wait(2) statuses and modernize the code handling them 2017-06-19 12:47:50 +00:00
Interpreter [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
Language Enable parsing C++ names generated by lambda functions. 2017-07-13 19:48:43 +00:00
ObjectFile [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
Platform [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Process Fix some warnings in ProcessorTraceTest.cpp 2017-07-04 12:29:30 +00:00
ScriptInterpreter Added new API to SBStructuredData class 2017-05-29 08:25:46 +00:00
Signals Make LLDB skip server-client roundtrip for signals that don't require any actions 2017-03-07 21:34:40 +00:00
Symbol [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
SymbolFile Fix a cmake typo to unbreak windows unit tests 2017-06-30 07:54:35 +00:00
Target [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
UnwindAssembly The x86 instruction unwinder can be asked to disassemble non-instruction 2017-07-08 00:12:15 +00:00
Utility Fix VASprintfTest.cpp for Darwin, add checks 2017-08-09 17:27:02 +00:00
debugserver Fix debugserver accepting remote connections 2017-07-13 20:58:13 +00:00
tools Move StructuredData from Core to Utility 2017-06-27 10:45:31 +00:00
CMakeLists.txt New framework for lldb client-server communication tests. 2017-06-06 13:40:18 +00:00
gtest_common.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00