Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
d28d05cc
Commit
d28d05cc
authored
Mar 26, 2020
by
Mario Voorsluys
Browse files
Only write ">\n" once when there is failure and skipped tests.
parent
59e5b401
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
googletest/src/gtest.cc
googletest/src/gtest.cc
+2
-2
No files found.
googletest/src/gtest.cc
View file @
d28d05cc
...
...
@@ -4085,7 +4085,7 @@ void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream,
for
(
int
i
=
0
;
i
<
result
.
total_part_count
();
++
i
)
{
const
TestPartResult
&
part
=
result
.
GetTestPartResult
(
i
);
if
(
part
.
failed
())
{
if
(
++
failures
==
1
)
{
if
(
++
failures
==
1
&&
skips
==
0
)
{
*
stream
<<
">
\n
"
;
}
const
std
::
string
location
=
...
...
@@ -4099,7 +4099,7 @@ void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream,
OutputXmlCDataSection
(
stream
,
RemoveInvalidXmlCharacters
(
detail
).
c_str
());
*
stream
<<
"</failure>
\n
"
;
}
else
if
(
part
.
skipped
())
{
if
(
++
skips
==
1
)
{
if
(
++
skips
==
1
&&
failures
==
0
)
{
*
stream
<<
">
\n
"
;
}
const
std
::
string
location
=
...
...
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