From 4097b95d62db14f738f69e3bb4d1162739f3a06a Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 26 Jul 2016 22:06:23 +0200 Subject: display data on test failure Change-Id: I432ba81929dd0badd48d2bd7b4344ceed4df2b43 --- svl/qa/unit/svl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svl/qa/unit') diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index efdef68e57ad..040d47be281a 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1007,7 +1007,8 @@ void Test::checkDateInput( SvNumberFormatter& rFormatter, const char* pTimezone, sal_uInt32 nIndex = 0; double fVal = 0.0; bool bVal = rFormatter.IsNumberFormat( aDate, nIndex, fVal); - CPPUNIT_ASSERT_MESSAGE("Date not recognized.", bVal); + CPPUNIT_ASSERT_MESSAGE( OString("Date not recognized: " + + OString(pTimezone) + " " + OString(pIsoDate)).getStr(), bVal); CPPUNIT_ASSERT_MESSAGE("Format parsed is not date.", (rFormatter.GetType(nIndex) & css::util::NumberFormat::DATE)); OUString aOutString; -- cgit