mirror of
https://github.com/google/googletest.git
synced 2024-12-28 11:10:44 +08:00
Makes gtest compilable on Win CE.
This commit is contained in:
parent
16b9431ae0
commit
18c31d64e1
@ -2553,11 +2553,16 @@ static void PrintTestPartResult(const TestPartResult& test_part_result) {
|
||||
PrintTestPartResultToString(test_part_result);
|
||||
printf("%s\n", result.c_str());
|
||||
fflush(stdout);
|
||||
#if GTEST_OS_WINDOWS
|
||||
// If the test program runs in Visual Studio or a debugger, the
|
||||
// following states add the test part result message to the Output
|
||||
// following statements add the test part result message to the Output
|
||||
// window such that the user can double-click on it to jump to the
|
||||
// corresponding source code location; otherwise they do nothing.
|
||||
#ifdef _WIN32_WCE
|
||||
// Windows Mobile doesn't support the ANSI version of OutputDebugString,
|
||||
// it works only with UTF16 strings.
|
||||
::OutputDebugString(internal::String::AnsiToUtf16(result.c_str()));
|
||||
::OutputDebugString(L"\n");
|
||||
#elif GTEST_OS_WINDOWS
|
||||
::OutputDebugStringA(result.c_str());
|
||||
::OutputDebugStringA("\n");
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user