From: Debian LibreOffice Maintainers Date: Tue, 8 Oct 2024 15:43:46 +0000 (+0200) Subject: riscv-disable-NaN-test X-Git-Tag: archive/raspbian/4%24.8.2-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a8e4813127cb795a1a58e595856ab4e3c22cbcbc;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(); };