From a900c72c675c8605fc004a4f63ba1d82eaeed9d5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 17 Apr 2017 20:20:18 +0200 Subject: Make the testTdf106974_int32Crop pass on my Mac, too cf. 1391f3702a3daaefc67a8ee4b62ac38959db283f "Make the testTdf106974_int32Crop pass on my Mac". For some reason, on my Mac the Right value is 40474 resp. 40471 the two times the function gets called. Change-Id: I731ff9c5cf76be9d4817ad14f296807017d10dbd --- sw/qa/extras/ooxmlexport/ooxmlexport3.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/qa') diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx index 85ef3c242685..ea7135058c53 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx @@ -638,7 +638,9 @@ DECLARE_OOXMLEXPORT_TEST(testTdf106974_int32Crop, "tdf106974_int32Crop.docx") imageProperties->getPropertyValue( "GraphicCrop" ) >>= aGraphicCropStruct; - CPPUNIT_ASSERT( sal_Int32( 41000 ) < aGraphicCropStruct.Right ); + CPPUNIT_ASSERT_MESSAGE( + OString::number(aGraphicCropStruct.Right).getStr(), + sal_Int32( 40470 ) < aGraphicCropStruct.Right ); } DECLARE_OOXMLEXPORT_TEST(testLineSpacingexport, "test_line_spacing.docx") -- cgit