llvm-6502/unittests/Support
Rui Ueyama f42d4247ae Add getenv() wrapper that works on multibyte environment variable.
On Windows, character encoding of multibyte environment variable varies
depending on settings. The only reliable way to handle it I think is to use
GetEnvironmentVariableW().

GetEnvironmentVariableW() works on wchar_t string, which is on Windows UTF16
string. That's not ideal because we use UTF-8 as the internal encoding in LLVM.
This patch defines a wrapper function which takes and returns UTF-8 string for
GetEnvironmentVariableW().

The wrapper function does not do any conversion and just forwards the argument
to getenv() on Unix.

Differential Revision: http://llvm-reviews.chandlerc.com/D1612

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190423 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-10 19:45:51 +00:00
..
AlignOfTest.cpp
AllocatorTest.cpp
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp Fix a bad overflow check pointed out by Ben. 2013-06-28 21:51:18 +00:00
Casting.cpp Fix a regression I introduced back in r178147. 2013-07-18 02:42:40 +00:00
CMakeLists.txt Update CMake file to fix buildbots. 2013-09-09 19:25:11 +00:00
CommandLineTest.cpp Implement TokenizeWindowsCommandLine. 2013-07-30 19:03:20 +00:00
CompressionTest.cpp Expose CRC-32 implementation from zlib 2013-08-14 16:03:29 +00:00
ConstantRangeTest.cpp
ConvertUTFTest.cpp [Support] Add a Unicode conversion wrapper from UTF16 to UTF8 2013-07-16 17:14:33 +00:00
DataExtractorTest.cpp
EndianTest.cpp
ErrorOrTest.cpp [Support][ErrorOr] Add support for implicit conversion from error code/condition enums. 2013-02-28 01:44:26 +00:00
FileOutputBufferTest.cpp Add a convenience createUniqueDirectory function. 2013-06-27 03:45:31 +00:00
formatted_raw_ostream_test.cpp
LeakDetectorTest.cpp
LockFileManagerTest.cpp Fix boolean logic in LockFileManager and test it 2013-08-07 01:22:04 +00:00
Makefile Update incorrect file headers. 2013-08-01 18:42:28 +00:00
ManagedStatic.cpp Get the unittests compiling when building with cmake and the setting 2013-05-14 13:29:16 +00:00
MathExtrasTest.cpp [Support] Remove Count{Leading,Trailing}Zeros_{32,64}. 2013-05-24 22:58:37 +00:00
MD5Test.cpp Add support for adding the contents of a StringRef to the MD5 hash. 2013-05-31 22:34:56 +00:00
MemoryBufferTest.cpp MemoryBufer: add a test: check that a file with size that is a multiple of the 2013-09-04 18:02:13 +00:00
MemoryTest.cpp
Path.cpp Fixes a bug when iterating on paths 2013-08-12 17:10:49 +00:00
ProcessTest.cpp Add getenv() wrapper that works on multibyte environment variable. 2013-09-10 19:45:51 +00:00
ProgramTest.cpp Remove unused includes. 2013-06-26 13:54:34 +00:00
raw_ostream_test.cpp
RegexTest.cpp Fix off-by-one error in Regex::isValid 2013-08-08 17:32:45 +00:00
SwapByteOrderTest.cpp
TimeValueTest.cpp unittests/Support: Add TimeValue.Win32FILETIME, corresponding to r186374. 2013-07-16 02:44:23 +00:00
UnicodeTest.cpp Move generic isPrint and columnWidth implementations to a separate header/source to allow using both generic and system-dependent versions on win32. 2013-09-04 16:00:12 +00:00
ValueHandleTest.cpp
YAMLIOTest.cpp Removing a spurious semi-colon; this macro expands into a namespace. 2013-08-16 01:53:58 +00:00
YAMLParserTest.cpp