[Libreoffice-commits] core.git: sw/qa

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 27 06:14:23 UTC 2021


 sw/qa/extras/indexing/SearchResultLocatorTest.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b4f7a61abe222f874b064076eaec05c371b89c5f
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Mon Jul 26 22:03:12 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Tue Jul 27 08:13:50 2021 +0200

    sw: disable SearchResultLocatorTest for Windows and MacOS
    
    Because of inconsistent reuslts for those 2 platforms for unknown
    issues, turn the tests off for now.
    
    Change-Id: I9b1c8a839d6765d695ed5d9b129c001ffd66ed5e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119508
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/sw/qa/extras/indexing/SearchResultLocatorTest.cxx b/sw/qa/extras/indexing/SearchResultLocatorTest.cxx
index 933c96159a51..e93c36b7fa7a 100644
--- a/sw/qa/extras/indexing/SearchResultLocatorTest.cxx
+++ b/sw/qa/extras/indexing/SearchResultLocatorTest.cxx
@@ -47,7 +47,10 @@ SwDoc* SearchResultLocatorTest::createDoc(const char* pName)
 
 void SearchResultLocatorTest::testSearchResultLocator()
 {
-#ifndef MACOSX
+#if !defined(_WIN32) && !defined(MACOSX)
+    if (!IsDefaultDPI())
+        return;
+
     SwDoc* pDoc = createDoc("IndexingExport_VariousParagraphs.odt");
     CPPUNIT_ASSERT(pDoc);
 


More information about the Libreoffice-commits mailing list