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
1d505b8e
Commit
1d505b8e
authored
Oct 11, 2022
by
Denis Hananein
Browse files
Fix JSON output format #3884
parent
d9bb8412
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
googletest/src/gtest.cc
googletest/src/gtest.cc
+3
-0
No files found.
googletest/src/gtest.cc
View file @
1d505b8e
...
...
@@ -4829,6 +4829,9 @@ void JsonUnitTestResultPrinter::PrintJsonUnitTest(std::ostream* stream,
// If there was a test failure outside of one of the test suites (like in a
// test environment) include that in the output.
if
(
unit_test
.
ad_hoc_test_result
().
Failed
())
{
if
(
comma
)
{
*
stream
<<
",
\n
"
;
}
OutputJsonTestSuiteForTestResult
(
stream
,
unit_test
.
ad_hoc_test_result
());
}
...
...
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