summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-11-29 10:52:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-11-29 10:52:21 +0100
commit373074611cdb6ac3931143a03a3505cb489f1442 (patch)
tree1596372375053719b7c1530919973a5b45477c37 /test
parent3051f8be18ab878399a9850474876d4c8bd01e5d (diff)
Improve error message
Change-Id: Ibaee8bd83e9f34e0258b48d87151ec03c8301a3a
Diffstat (limited to 'test')
-rw-r--r--test/source/diff/diff.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx
index 048e7835384f..8757104bf43e 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;