riscv-disable-NaN-test
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Sun, 22 Sep 2024 21:40:32 +0000 (23:40 +0200)
committerRene Engelhard <rene@debian.org>
Sun, 22 Sep 2024 21:40:32 +0000 (23:40 +0200)
Gbp-Pq: Name riscv-disable-NaN-test.diff

sal/qa/rtl/math/test-rtl-math.cxx

index 7e28356f625a84e7c18f5b0bcf6fb18477ecf217..ee921ed244966a71a52aeaedc6fe70476fc382e5 100644 (file)
@@ -666,6 +666,7 @@ public:
         CPPUNIT_ASSERT(std::isnan(res));
     }
 
+#ifndef __riscv
     void test_payloadNaN() {
         // Test that a quiet NaN payload is propagated and behaves as we
         // expect. Ideally that could be done with a constexpr in
@@ -688,6 +689,7 @@ public:
                 0xbeef == reinterpret_cast<const sal_math_Double*>(&fVal3)->nan_parts.fraction_lo ||
                 0xdead == reinterpret_cast<const sal_math_Double*>(&fVal3)->nan_parts.fraction_lo);
     }
+#endif
 
     CPPUNIT_TEST_SUITE(Test);
     CPPUNIT_TEST(test_stringToDouble_good);
@@ -703,7 +705,9 @@ public:
     CPPUNIT_TEST(test_acosh);
     CPPUNIT_TEST(test_asinh);
     CPPUNIT_TEST(test_atanh);
+#ifndef __riscv
     CPPUNIT_TEST(test_payloadNaN);
+#endif
     CPPUNIT_TEST_SUITE_END();
 };