diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-08-04 01:04:15 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-08-04 01:04:15 +0200 |
commit | 4b3008dc45f4a6f7aaa5b01ef30926b243ee8e06 (patch) | |
tree | fb20121f9fb4061a8f14a7382c90357c658e117b /writerfilter/qa | |
parent | fe02b4ec17922ce74902a221f7441fec12017d44 (diff) |
testrtf: ignore dotfiles
Diffstat (limited to 'writerfilter/qa')
-rw-r--r-- | writerfilter/qa/cppunittests/rtftok/testrtftok.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx index c8a041a284a8..7ed42dcdfa39 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); |