summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-10-08 01:37:18 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-10-08 02:19:00 +0200
commit72d87e2b5f37c639c04a1da80b922ae38537d591 (patch)
tree37092e26b3fbc7196383792fb7feb6e87a3a6712
parenteded42ce444318e2a195cc7696d6a4289dd1ed3f (diff)
improve error messages for sc's filters-test
-rw-r--r--sc/qa/unit/filters-test.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 4a56ce18ffcc..525a917634eb 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -102,7 +102,9 @@ void testFile(rtl::OUString& aFileName, ScDocument* pDoc, SCTAB nTab, StringType
catch (const orcus::csv_parse_error& e)
{
std::cout << "reading csv content file failed: " << e.what() << std::endl;
- CPPUNIT_ASSERT_MESSAGE("csv parser error", false);
+ rtl::OStringBuffer aErrorMsg("csv parser error: ");
+ aErrorMsg.append(e.what());
+ CPPUNIT_ASSERT_MESSAGE(aErrorMsg.getStr(), false);
}
}
@@ -124,7 +126,9 @@ void testCondFile(rtl::OUString& aFileName, ScDocument* pDoc, SCTAB nTab)
catch (const orcus::csv_parse_error& e)
{
std::cout << "reading csv content file failed: " << e.what() << std::endl;
- CPPUNIT_ASSERT_MESSAGE("csv parser error", false);
+ rtl::OStringBuffer aErrorMsg("csv parser error: ");
+ aErrorMsg.append(e.what());
+ CPPUNIT_ASSERT_MESSAGE(aErrorMsg.getStr(), false);
}
}
@@ -153,7 +157,7 @@ public:
*/
void testCVEs();
- //ods filter tests
+ //ods, xls, xlsx filter tests
void testRangeName();
void testContent();
void testFunctions();
@@ -597,7 +601,7 @@ void ScFiltersTest::testStarBasic()
double aValue;
pDoc->GetValue(0,0,0,aValue);
std::cout << aValue << std::endl;
- CPPUNIT_ASSERT_MESSAGE("",aValue==2);
+ CPPUNIT_ASSERT_MESSAGE("script did not change the value of Sheet1.A1",aValue==2);
xDocSh->DoClose();
}
@@ -630,7 +634,7 @@ void ScFiltersTest::testVba()
double aValue;
pDoc->GetValue(0,0,0,aValue);
std::cout << aValue << std::endl;
- CPPUNIT_ASSERT_MESSAGE("",aValue==2);
+ CPPUNIT_ASSERT_MESSAGE("script did not change the value of Sheet1.A1",aValue==2);
xDocSh->DoClose();
}