aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-03-24 20:39:44 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-03-24 20:39:44 +0000
commit2c0fc6d415343b732a4ae39cce1458be1170b9f6 (patch)
treec5ab10847116c91a6e4bc12a2945b3d77f70fd21 /src/gtest.cc
parent1f8a50e429735ded6b27bfdfb96d0e0aa4d8627b (diff)
downloadgoogletest-2c0fc6d415343b732a4ae39cce1458be1170b9f6.tar.gz
googletest-2c0fc6d415343b732a4ae39cce1458be1170b9f6.tar.bz2
googletest-2c0fc6d415343b732a4ae39cce1458be1170b9f6.zip
Cleans up death test implementation (by Vlad Losev); changes the XML format to be closer to junitreport (by Zhanyong Wan).
Diffstat (limited to 'src/gtest.cc')
-rw-r--r--src/gtest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtest.cc b/src/gtest.cc
index a66b78fd..adec6c79 100644
--- a/src/gtest.cc
+++ b/src/gtest.cc
@@ -3044,7 +3044,7 @@ internal::String XmlUnitTestResultPrinter::EscapeXml(const char* str,
//
// This is how Google Test concepts map to the DTD:
//
-// <testsuite name="AllTests"> <-- corresponds to a UnitTest object
+// <testsuites name="AllTests"> <-- corresponds to a UnitTest object
// <testsuite name="testcase-name"> <-- corresponds to a TestCase object
// <testcase name="test-name"> <-- corresponds to a TestInfo object
// <failure message="...">...</failure>
@@ -3053,7 +3053,7 @@ internal::String XmlUnitTestResultPrinter::EscapeXml(const char* str,
// <-- individual assertion failures
// </testcase>
// </testsuite>
-// </testsuite>
+// </testsuites>
namespace internal {
@@ -3137,7 +3137,7 @@ void XmlUnitTestResultPrinter::PrintXmlUnitTest(FILE* out,
const internal::UnitTestImpl* const impl = unit_test->impl();
fprintf(out, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
fprintf(out,
- "<testsuite tests=\"%d\" failures=\"%d\" disabled=\"%d\" "
+ "<testsuites tests=\"%d\" failures=\"%d\" disabled=\"%d\" "
"errors=\"0\" time=\"%s\" ",
impl->total_test_count(),
impl->failed_test_count(),
@@ -3150,7 +3150,7 @@ void XmlUnitTestResultPrinter::PrintXmlUnitTest(FILE* out,
case_node = case_node->next()) {
PrintXmlTestCase(out, case_node->element());
}
- fprintf(out, "</testsuite>\n");
+ fprintf(out, "</testsuites>\n");
}
// Produces a string representing the test properties in a result as space