Skip to content

Commit e07617d

Browse files
Merge pull request #4036 from zloylos:fix-output-json-3884
PiperOrigin-RevId: 482287697 Change-Id: I1179a1570cd64fcb156bda26e5c779b876c51742
2 parents 6bad847 + 1d505b8 commit e07617d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

googletest/src/gtest.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4829,6 +4829,9 @@ void JsonUnitTestResultPrinter::PrintJsonUnitTest(std::ostream* stream,
48294829
// If there was a test failure outside of one of the test suites (like in a
48304830
// test environment) include that in the output.
48314831
if (unit_test.ad_hoc_test_result().Failed()) {
4832+
if (comma) {
4833+
*stream << ",\n";
4834+
}
48324835
OutputJsonTestSuiteForTestResult(stream, unit_test.ad_hoc_test_result());
48334836
}
48344837

0 commit comments

Comments
 (0)