basic/qa/cppunit/test_vba.cxx                              |    6 +++++-
 sc/qa/unit/filters-test.cxx                                |    5 ++++-
 sd/qa/unit/filters-test.cxx                                |    5 ++++-
 sw/qa/core/filters-test.cxx                                |   12 ++++++++----
 sw/qa/core/header_footer/HeaderFooterTest.cxx              |    4 ++++
 sw/qa/extras/layout/layout3.cxx                            |    5 ++++-
 vcl/qa/cppunit/graphicfilter/filters-test.cxx              |    6 ++++--
 writerfilter/qa/cppunittests/filters-test/filters-test.cxx |    4 ++++
 8 files changed, 37 insertions(+), 10 deletions(-)

New commits:
commit 4c9d06cf692750049a41209a276ff83c6c9cf759
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Tue Sep 10 11:58:04 2024 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Wed Oct 2 19:51:03 2024 +0200

    Temporarily skip unit tests on native arm64 build
    
    which indicating unit test fails.
    
    Cherry-picked from commit: b6775ce2b397276237dfb9eecd54b9682aca79b1
    (Temporarily skip unit tests on native arm64 build)
    
    Change-Id: I2689b0dda888e15e52ca60cc18e1705a1aefe968
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173143
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>
    Tested-by: Jenkins
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174400
    Tested-by: Balazs Varga <balazs.varga.ext...@allotropia.de>

diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx
index 8a15ba7234e8..9535899bf3e7 100644
--- a/basic/qa/cppunit/test_vba.cxx
+++ b/basic/qa/cppunit/test_vba.cxx
@@ -185,7 +185,11 @@ void VBATest::testMiscOLEStuff()
 // Since some time, on a properly updated Windows 10, this works
 // only with a 64-bit LibreOffice
 
-#if defined(_WIN64)
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+    // Avoid "this method is empty and should be removed" warning
+    (void) 42;
+#elif defined(_WIN64)
     // test if we have the necessary runtime environment
     // to run the OLE tests.
     uno::Reference< lang::XMultiServiceFactory > xOLEFactory;
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 671f9760d197..e51ef45a1885 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -93,9 +93,12 @@ void ScFiltersTest::testCVEs()
     //not indicate that it imported as .slk.
     testDir("SYLK",
         m_directories.getURLFromSrc(u"/sc/qa/unit/data/slk/"));
-
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+#else
     testDir("MS Excel 97",
         m_directories.getURLFromSrc(u"/sc/qa/unit/data/xls/"));
+#endif
 
     testDir("Calc Office Open XML",
         m_directories.getURLFromSrc(u"/sc/qa/unit/data/xlsx/"), OUString(), 
XLSX_FORMAT_TYPE);
diff --git a/sd/qa/unit/filters-test.cxx b/sd/qa/unit/filters-test.cxx
index 1ed0f7991487..d30af71c3be9 100644
--- a/sd/qa/unit/filters-test.cxx
+++ b/sd/qa/unit/filters-test.cxx
@@ -68,6 +68,9 @@ bool SdFiltersTest::load(const OUString &rFilter, const 
OUString &rURL,
 void SdFiltersTest::testCVEs()
 {
 #ifndef DISABLE_CVE_TESTS
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+#else
     testDir("MS PowerPoint 97",
             m_directories.getURLFromSrc(u"/sd/qa/unit/data/ppt/"),
             "sd");
@@ -75,7 +78,7 @@ void SdFiltersTest::testCVEs()
     testDir("Impress Office Open XML",
             m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/"),
             "",  (SfxFilterFlags::IMPORT | SfxFilterFlags::ALIEN | 
SfxFilterFlags::STARONEFILTER));
-
+#endif
     testDir("impress8",
             m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/"),
             "sd");
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index ffc24cbda4b8..e6b0bfbf8c1e 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -143,11 +143,13 @@ void SwFiltersTest::testCVEs()
             FILTER_XML,
             SfxFilterFlags::IMPORT | SfxFilterFlags::OWN | 
SfxFilterFlags::DEFAULT,
             isstorage, SOFFICE_FILEFORMAT_CURRENT);
-
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+#else
     testDir("MS Word 97",
             m_directories.getURLFromSrc(u"/sw/qa/core/data/ww8/"),
             FILTER_WW8);
-
+#endif
     testDir("MS WinWord 6.0",
             m_directories.getURLFromSrc(u"/sw/qa/core/data/ww6/"),
             sWW6);
@@ -164,12 +166,14 @@ void SwFiltersTest::testCVEs()
             m_directories.getURLFromSrc(u"/sw/qa/core/data/ooxml/"),
             OUString(),
             SfxFilterFlags::STARONEFILTER);
-
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+#else
     testDir("Rich Text Format",
             m_directories.getURLFromSrc(u"/sw/qa/core/data/rtf/"),
             OUString(),
             SfxFilterFlags::STARONEFILTER);
-
+#endif
     testDir("HTML",
             m_directories.getURLFromSrc(u"/sw/qa/core/data/html/"),
             sHTML);
diff --git a/sw/qa/core/header_footer/HeaderFooterTest.cxx 
b/sw/qa/core/header_footer/HeaderFooterTest.cxx
index 4d2938ef28dc..97d1425c491b 100644
--- a/sw/qa/core/header_footer/HeaderFooterTest.cxx
+++ b/sw/qa/core/header_footer/HeaderFooterTest.cxx
@@ -680,6 +680,9 @@ CPPUNIT_TEST_FIXTURE(HeaderFooterTest, 
testFirstPageFooterEnabled)
     verify();
 }
 
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+#else
 CPPUNIT_TEST_FIXTURE(HeaderFooterTest, testBnc519228OddBreaks)
 {
     auto verify = [this]() {
@@ -762,6 +765,7 @@ CPPUNIT_TEST_FIXTURE(HeaderFooterTest, 
testBnc519228OddBreaks)
     saveAndReload("Office Open XML Text");
     verify();
 }
+#endif
 
 CPPUNIT_TEST_FIXTURE(HeaderFooterTest, testBnc875718)
 {
diff --git a/sw/qa/extras/layout/layout3.cxx b/sw/qa/extras/layout/layout3.cxx
index 997a63f9a831..6b2b99af0f6f 100644
--- a/sw/qa/extras/layout/layout3.cxx
+++ b/sw/qa/extras/layout/layout3.cxx
@@ -90,7 +90,9 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, testTdf117187)
         
"/root/page/body/txt/SwParaPortion/SwLineLayout/child::*[@nType='PortionType::Fly']"_ostr,
         0);
 }
-
+#if defined _WIN32 && defined _ARM64_
+// skip for windows arm64 build
+#else
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, testTdf119875)
 {
     createSwDoc("tdf119875.odt");
@@ -115,6 +117,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, testTdf119875)
     // Section "S11" had the same top value as section "S14", so they 
overlapped.
     CPPUNIT_ASSERT_LESS(S14Top.toInt32(), S11Top.toInt32());
 }
+#endif
 
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, testTdf137523)
 {
diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx 
b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
index e065cf6b5d09..e61ad8216782 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
@@ -160,10 +160,12 @@ void VclFiltersTest::testCVEs()
 
     testDir(OUString(),
         
m_directories.getURLFromSrc(u"/vcl/qa/cppunit/graphicfilter/data/png/"));
-
+#if defined _WIN32 && defined _ARM64_
+    // skip for windows arm64 build
+#else
     testDir(OUString(),
         
m_directories.getURLFromSrc(u"/vcl/qa/cppunit/graphicfilter/data/jpg/"));
-
+#endif
     testDir(OUString(),
         
m_directories.getURLFromSrc(u"/vcl/qa/cppunit/graphicfilter/data/gif/"));
 
diff --git a/writerfilter/qa/cppunittests/filters-test/filters-test.cxx 
b/writerfilter/qa/cppunittests/filters-test/filters-test.cxx
index 36ebeee2142e..95729e6d4f8a 100644
--- a/writerfilter/qa/cppunittests/filters-test/filters-test.cxx
+++ b/writerfilter/qa/cppunittests/filters-test/filters-test.cxx
@@ -69,9 +69,13 @@ bool RtfTest::load(const OUString&, const OUString& rURL, 
const OUString&, SfxFi
 CPPUNIT_TEST_FIXTURE(RtfTest, testFilter)
 {
 #ifndef DISABLE_CVE_TESTS
+#if defined _WIN32 && defined _ARM64_
+// skip for windows arm64 build
+#else
     testDir(OUString(),
             
m_directories.getURLFromSrc(u"/writerfilter/qa/cppunittests/filters-test/data/"));
 #endif
+#endif
 }
 
 CPPUNIT_PLUGIN_IMPLEMENT();

Reply via email to