llvm-project/lldb/unittests/Utility
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
..
Helpers [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
Inputs Move StructuredData from Core to Utility 2017-06-27 10:45:31 +00:00
CMakeLists.txt Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
ConstStringTest.cpp Remove LIBLLDB_LOG_VERBOSE category 2017-02-05 00:44:54 +00:00
LogTest.cpp Remove lldb streams from the Log class completely 2017-03-15 09:06:58 +00:00
NameMatchesTest.cpp Fix a couple of corner cases in NameMatches 2017-02-20 11:35:33 +00:00
StatusTest.cpp Add llvm::Error assignment operator to Status class 2017-06-15 11:23:26 +00:00
StringExtractorTest.cpp unittests: Specify types in a bunch of unittest EXPECT's 2016-10-17 18:22:03 +00:00
StructuredDataTest.cpp [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
TaskPoolTest.cpp Add TaskMap for iterating a function over a set of integers 2017-05-05 11:16:59 +00:00
TildeExpressionResolverTest.cpp [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
TimeoutTest.cpp Add a format_provider for the Timeout class 2017-02-10 11:49:33 +00:00
TimerTest.cpp Move Timer and TraceOptions from Core to Utility 2017-06-29 14:32:17 +00:00
UriParserTest.cpp UriParser cleanup 2017-02-10 12:21:22 +00:00
VASprintfTest.cpp Fix VASprintfTest.cpp for Darwin, add checks 2017-08-09 17:27:02 +00:00