sc/qa/unit/subsequent_filters_test2.cxx |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit 5b160c734fa3f7ab0ef235e99480ce7d14e20224
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Nov 11 18:07:30 2021 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Nov 12 06:15:18 2021 +0100

    Add a bit of info to the test failure output
    
    Change-Id: I94950217aa979805e3080b4ab9230a799dcab7ff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124977
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sc/qa/unit/subsequent_filters_test2.cxx 
b/sc/qa/unit/subsequent_filters_test2.cxx
index 28f42b25dab6..0963e547ddcf 100644
--- a/sc/qa/unit/subsequent_filters_test2.cxx
+++ b/sc/qa/unit/subsequent_filters_test2.cxx
@@ -2542,15 +2542,16 @@ void ScFiltersTest2::testShapeRotationImport()
         uno::Reference<beans::XPropertySet> xShapeProperties(xShape, 
uno::UNO_QUERY);
         uno::Any nRotProp = xShapeProperties->getPropertyValue("RotateAngle");
         sal_Int32 nRot = nRotProp.get<sal_Int32>();
+        const OString sNote = "RotateAngle = " + OString::number(nRot);
 
         awt::Point aPosition = xShape->getPosition();
         awt::Size aSize = xShape->getSize();
 
-        CPPUNIT_ASSERT(aExpectedValues.find(nRot) != aExpectedValues.end());
-        CPPUNIT_ASSERT_EQUAL(aExpectedValues[nRot]["x"], aPosition.X);
-        CPPUNIT_ASSERT_EQUAL(aExpectedValues[nRot]["y"], aPosition.Y);
-        CPPUNIT_ASSERT_EQUAL(aExpectedValues[nRot]["width"], aSize.Width);
-        CPPUNIT_ASSERT_EQUAL(aExpectedValues[nRot]["height"], aSize.Height);
+        CPPUNIT_ASSERT_MESSAGE(sNote.getStr(), aExpectedValues.find(nRot) != 
aExpectedValues.end());
+        CPPUNIT_ASSERT_EQUAL_MESSAGE(sNote.getStr(), 
aExpectedValues[nRot]["x"], aPosition.X);
+        CPPUNIT_ASSERT_EQUAL_MESSAGE(sNote.getStr(), 
aExpectedValues[nRot]["y"], aPosition.Y);
+        CPPUNIT_ASSERT_EQUAL_MESSAGE(sNote.getStr(), 
aExpectedValues[nRot]["width"], aSize.Width);
+        CPPUNIT_ASSERT_EQUAL_MESSAGE(sNote.getStr(), 
aExpectedValues[nRot]["height"], aSize.Height);
     }
 }
 

Reply via email to