From f5475e592921879ebdad98f91503e689b4a0c7aa Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Fri, 27 Sep 2024 17:38:49 +0200 Subject: [PATCH] riscv-disable-NaN-test Gbp-Pq: Name riscv-disable-NaN-test.diff --- sal/qa/rtl/math/test-rtl-math.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(); }; -- 2.30.2