Skip to content

Commit

Permalink
Merge pull request #4036 from zloylos:fix-output-json-3884
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 482287697
Change-Id: I1179a1570cd64fcb156bda26e5c779b876c51742
  • Loading branch information
copybara-github committed Oct 19, 2022
2 parents 6bad847 + 1d505b8 commit e07617d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions googletest/src/gtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit e07617d

Please sign in to comment.