[Libreoffice-commits] core.git: sc/Module_sc.mk sc/qa

Miklos Vajna vmiklos at collabora.co.uk
Fri Jul 1 12:19:20 UTC 2016


 sc/Module_sc.mk                              |    7 ++++++-
 sc/qa/unit/tiledrendering/tiledrendering.cxx |   15 ---------------
 2 files changed, 6 insertions(+), 16 deletions(-)

New commits:
commit 8e3451c096987e6fc7eaca409fd45a62e13ae4c5
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Jul 1 12:00:44 2016 +0200

    CppunitTest_sc_tiledrendering: replace ifdefs with a single makefile condition
    
    Change-Id: I1dded11e0572dee7cd917a1aa8c2e2ca53b81d84
    Reviewed-on: https://gerrit.libreoffice.org/26849
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk
index 0f6b29f..9c331bb 100644
--- a/sc/Module_sc.mk
+++ b/sc/Module_sc.mk
@@ -47,9 +47,14 @@ $(eval $(call gb_Module_add_check_targets,sc,\
 	CppunitTest_sc_rangelst_test \
 	CppunitTest_sc_mark_test \
 	CppunitTest_sc_core \
-	CppunitTest_sc_tiledrendering \
 ))
 
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Module_add_check_targets,sc,\
+    CppunitTest_sc_tiledrendering \
+))
+endif
+
 $(eval $(call gb_Module_add_slowcheck_targets,sc, \
 	CppunitTest_sc_condformats \
 	CppunitTest_sc_new_cond_format_api \
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index 9ae9f01..24bbbce 100644
--- a/sc/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx
@@ -36,9 +36,7 @@
 
 using namespace css;
 
-#if !defined(WNT) && !defined(MACOSX)
 static const char* DATA_DIRECTORY = "/sc/qa/unit/tiledrendering/data/";
-#endif
 
 class ScTiledRenderingTest : public test::BootstrapFixture, public unotest::MacrosTest, public XmlTestTools
 {
@@ -47,44 +45,34 @@ public:
     virtual void setUp() SAL_OVERRIDE;
     virtual void tearDown() SAL_OVERRIDE;
 
-#if !defined(WNT) && !defined(MACOSX)
     void testRowColumnSelections();
     void testSortAscendingDescending();
     void testPartHash();
     void testDocumentSize();
     void testEmptyColumnSelection();
-#endif
 
     CPPUNIT_TEST_SUITE(ScTiledRenderingTest);
-#if !defined(WNT) && !defined(MACOSX)
     CPPUNIT_TEST(testRowColumnSelections);
     CPPUNIT_TEST(testSortAscendingDescending);
     CPPUNIT_TEST(testPartHash);
     CPPUNIT_TEST(testDocumentSize);
     CPPUNIT_TEST(testEmptyColumnSelection);
-#endif
     CPPUNIT_TEST_SUITE_END();
 
 private:
-#if !defined(WNT) && !defined(MACOSX)
     ScModelObj* createDoc(const char* pName);
     static void callback(int nType, const char* pPayload, void* pData);
     void callbackImpl(int nType, const char* pPayload);
 
     /// document size changed callback.
     osl::Condition m_aDocSizeCondition;
-#endif
 
     uno::Reference<lang::XComponent> mxComponent;
-#if !defined(WNT) && !defined(MACOSX)
     // TODO various test-related members - when needed
-#endif
 };
 
 ScTiledRenderingTest::ScTiledRenderingTest()
-#if !defined(WNT) && !defined(MACOSX)
     // TODO various test-related members - when needed
-#endif
 {
 }
 
@@ -103,7 +91,6 @@ void ScTiledRenderingTest::tearDown()
     test::BootstrapFixture::tearDown();
 }
 
-#if !defined(WNT) && !defined(MACOSX)
 ScModelObj* ScTiledRenderingTest::createDoc(const char* pName)
 {
     if (mxComponent.is())
@@ -360,8 +347,6 @@ void ScTiledRenderingTest::testEmptyColumnSelection()
     comphelper::LibreOfficeKit::setActive(false);
 }
 
-#endif
-
 CPPUNIT_TEST_SUITE_REGISTRATION(ScTiledRenderingTest);
 
 CPPUNIT_PLUGIN_IMPLEMENT();


More information about the Libreoffice-commits mailing list