diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-08 10:21:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-08 10:21:46 +0100 |
commit | 0a224930849669c461d929bb81b0556cd87c4357 (patch) | |
tree | c6379bc47c5f76f8f7d33f08ee75454d33d75157 /sw/qa | |
parent | dbce2b24541ea2bb923152da3bfcec61154e9957 (diff) |
ignore .gitignore
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/filters-test.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx index 89cafba3a2d8..75262f70cdbf 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); |