[Libreoffice-commits] .: test/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 29 01:52:46 PST 2012


 test/source/diff/diff.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 373074611cdb6ac3931143a03a3505cb489f1442
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 29 10:52:21 2012 +0100

    Improve error message
    
    Change-Id: Ibaee8bd83e9f34e0258b48d87151ec03c8301a3a

diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx
index 048e783..8757104 100644
--- a/test/source/diff/diff.cxx
+++ b/test/source/diff/diff.cxx
@@ -327,7 +327,9 @@ bool XMLDiff::compareAttributes(xmlNodePtr node1, xmlNodePtr node2)
             else
             {
 #if USE_CPPUNIT
-            CPPUNIT_ASSERT_DOUBLES_EQUAL(dVal1, dVal2, 1e-08);
+                CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(
+                    reinterpret_cast< char const * >(attr1->name), dVal1, dVal2,
+                    1e-08);
 #else
                 if (dVal1 != dVal2)
                     return false;


More information about the Libreoffice-commits mailing list