[Libreoffice-commits] .: sc/qa
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Wed Oct 5 22:29:32 PDT 2011
sc/qa/unit/filters-test.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 5931c50a44a68384fe5d0101570db91fb6173095
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Thu Oct 6 07:26:46 2011 +0200
improve error message for missing csv files
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 8e3c27d..3e80c37 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -76,7 +76,9 @@ void loadFile(const rtl::OUString& aFileName, std::string& aContent)
rtl::OString aOFileName = rtl::OUStringToOString(aFileName, RTL_TEXTENCODING_UTF8);
std::ifstream aFile(aOFileName.getStr());
- CPPUNIT_ASSERT_MESSAGE("could not open csv file", aFile);
+ rtl::OStringBuffer aErrorMsg("Could not open csv file: ");
+ aErrorMsg.append(aOFileName);
+ CPPUNIT_ASSERT_MESSAGE(aErrorMsg.getStr(), aFile);
std::ostringstream aOStream;
aOStream << aFile.rdbuf();
aFile.close();
More information about the Libreoffice-commits
mailing list