summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-08-04 01:04:15 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-08-04 01:04:15 +0200
commitd1a499382e3cb7d3c12f4a990fa22f38970f2c8b (patch)
tree975e1b3551dcb4e5c84bd08c9d9bfb349e0f946d
parent49177f12a437e029a718a75d24406fad6050bcc4 (diff)
testrtf: ignore dotfiles
-rw-r--r--writerfilter/qa/cppunittests/rtftok/testrtftok.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
index c8a041a28..7ed42dcdf 100644
--- a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
@@ -144,6 +144,12 @@ void RtfTest::recursiveScan(const rtl::OUString &rURL, bool bExpected)
recursiveScan(sURL, bExpected);
else
{
+ //ignore .files
+ sal_Int32 nLastSlash = sURL.lastIndexOf('/');
+ if ((nLastSlash != -1) && (nLastSlash+1 < sURL.getLength()) &&
+ (sURL.getStr()[nLastSlash+1] == '.'))
+ continue;
+
bool bRes = load(sURL);
rtl::OString aRes(rtl::OUStringToOString(sURL, osl_getThreadTextEncoding()));
CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == bExpected);