From: Debian LibreOffice Maintainers Date: Mon, 10 Feb 2025 16:55:43 +0000 (+0100) Subject: riscv-disable-NaN-test X-Git-Tag: archive/raspbian/4%24.8.4-3+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b01c6fd3606c343ddb8b6df3754594e36719e273;p=libreoffice.git riscv-disable-NaN-test Gbp-Pq: Name riscv-disable-NaN-test.diff --- diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 7e28356f625..ee921ed2449 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -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(&fVal3)->nan_parts.fraction_lo || 0xdead == reinterpret_cast(&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(); };