Kaydet (Commit) fa204580 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improve output in case of test failure

Change-Id: If094349998d41972f50e12363a5a223ee87fdcec
üst e29c7747
...@@ -116,7 +116,7 @@ static void doTestDurationF(char const*const pis) ...@@ -116,7 +116,7 @@ static void doTestDurationF(char const*const pis)
bool bSuccess = Converter::convertDuration(od, bool bSuccess = Converter::convertDuration(od,
OUString::createFromAscii(pis)); 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"); 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() void ConverterTest::testDuration()
...@@ -281,7 +281,7 @@ static void doTestTimeF(char const*const pis) ...@@ -281,7 +281,7 @@ static void doTestTimeF(char const*const pis)
bool bSuccess = Converter::parseTimeOrDateTime(odt, 0, bool bSuccess = Converter::parseTimeOrDateTime(odt, 0,
OUString::createFromAscii(pis)); 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); 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 void ConverterTest::testTime() // time or dateTime + horrible backcompat mess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment