summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-11 16:31:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-12 08:07:47 +0100
commitfa2045807a5dce837bf9392528fcf88ceccd356f (patch)
treefa4df25219bb06ff9374d32ac73d2302987b7213
parente29c77479d7cffb6d2b5a4b68f5bc0ae93855ff3 (diff)
Improve output in case of test failure
Change-Id: If094349998d41972f50e12363a5a223ee87fdcec
-rw-r--r--sax/qa/cppunit/test_converter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/qa/cppunit/test_converter.cxx b/sax/qa/cppunit/test_converter.cxx
index cbc3ae0b84b5..4a0008b6f923 100644
--- a/sax/qa/cppunit/test_converter.cxx
+++ b/sax/qa/cppunit/test_converter.cxx
@@ -116,7 +116,7 @@ static void doTestDurationF(char const*const pis)
bool bSuccess = Converter::convertDuration(od,
OUString::createFromAscii(pis));
SAL_INFO("sax.cppunit","" << (od.Negative ? "-" : "+") << " " << od.Years << "Y " << od.Months << "M " << od.Days << "D " << od.Hours << "H " << od.Minutes << "M " << od.Seconds << "S " << od.NanoSeconds << "n");
- CPPUNIT_ASSERT(!bSuccess);
+ CPPUNIT_ASSERT_MESSAGE(pis, !bSuccess);
}
void ConverterTest::testDuration()
@@ -281,7 +281,7 @@ static void doTestTimeF(char const*const pis)
bool bSuccess = Converter::parseTimeOrDateTime(odt, 0,
OUString::createFromAscii(pis));
SAL_INFO("sax.cppunit","Y:" << odt.Year << " M:" << odt.Month << " D:" << odt.Day << " H:" << odt.Hours << "H M:" << odt.Minutes << " S:" << odt.Seconds << " nS:" << odt.NanoSeconds);
- CPPUNIT_ASSERT(!bSuccess);
+ CPPUNIT_ASSERT_MESSAGE(pis, !bSuccess);
}
void ConverterTest::testTime() // time or dateTime + horrible backcompat mess