[Libreoffice-commits] .: sw/qa

Caolán McNamara caolan at kemper.freedesktop.org
Wed Jun 8 02:21:54 PDT 2011


 sw/qa/core/filters-test.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit aef3ba1f840c9739c3bea53ee3e50f7102fc940f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 8 10:21:46 2011 +0100

    ignore .gitignore

diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 89cafba..75262f7 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -130,6 +130,12 @@ void FiltersTest::recursiveScan(const rtl::OUString &rFilter, const rtl::OUStrin
             recursiveScan(rFilter, sURL, rUserData, bExpected);
         else
         {
+            sal_Int32 nGitIndex = sURL.lastIndexOfAsciiL(
+                RTL_CONSTASCII_STRINGPARAM(".gitignore"));
+
+            if (nGitIndex == sURL.getLength() - RTL_CONSTASCII_LENGTH(".gitignore"))
+                continue;
+
             bool bRes = load(rFilter, sURL, rUserData);
             rtl::OString aRes(rtl::OUStringToOString(sURL, osl_getThreadTextEncoding()));
             CPPUNIT_ASSERT_MESSAGE(aRes.getStr(), bRes == bExpected);


More information about the Libreoffice-commits mailing list