sal/qa/rtl/math/test-rtl-math.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 67fccad964a1e556e762939177e588620b2a1889 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jun 24 16:30:08 2016 +0200 clang-analyzer-deadcode.DeadStores Change-Id: Idb7996e9063955dbb8126243670bdc30bd8dd97a diff --git a/sal/qa/rtl/math/test-rtl-math.cxx b/sal/qa/rtl/math/test-rtl-math.cxx index 3de4956..bdfd197 100644 --- a/sal/qa/rtl/math/test-rtl-math.cxx +++ b/sal/qa/rtl/math/test-rtl-math.cxx @@ -155,7 +155,7 @@ public: CPPUNIT_ASSERT_EQUAL(-1.0,res); rtl::math::setNan( &x); res = rtl::math::erf(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); x = 3.0; res = rtl::math::erf(-x); CPPUNIT_ASSERT_DOUBLES_EQUAL( -rtl::math::erf(x), res, 1E-12); @@ -174,7 +174,7 @@ public: CPPUNIT_ASSERT_EQUAL(2.0,res); rtl::math::setNan( &x); res = rtl::math::erfc(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); x = 3.0; res = rtl::math::erfc(-x); CPPUNIT_ASSERT_DOUBLES_EQUAL( 2.0 - rtl::math::erfc(x), res, 1E-12); @@ -197,7 +197,7 @@ public: CPPUNIT_ASSERT_EQUAL(-1.0,res); rtl::math::setNan( &x); res = rtl::math::expm1(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); } void test_log1p() { @@ -223,7 +223,7 @@ public: CPPUNIT_ASSERT_EQUAL(true, rtl::math::isNan(res)); rtl::math::setNan( &x); res = rtl::math::log1p(x); - CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(x)); + CPPUNIT_ASSERT_EQUAL(true,rtl::math::isNan(res)); } CPPUNIT_TEST_SUITE(Test); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits