Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
18c31d64
Commit
18c31d64
authored
Jul 23, 2009
by
zhanyong.wan
Browse files
Makes gtest compilable on Win CE.
parent
16b9431a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/gtest.cc
src/gtest.cc
+7
-2
No files found.
src/gtest.cc
View file @
18c31d64
...
...
@@ -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 state
ment
s 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment