summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-11 18:07:30 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-12 06:15:18 +0100
commit5b160c734fa3f7ab0ef235e99480ce7d14e20224 (patch)
treea6f235b755acda40dbfd92ce89e157d9900e2c50 /sc
parentc36fa9f86e54afa4e1876a9d296ebcbfcbd3a0ad (diff)
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.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/subsequent_filters_test2.cxx11
1 files changed, 6 insertions, 5 deletions
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);
}
}