[Libreoffice-commits] core.git: vcl/qa

Stephan Bergmann sbergman at redhat.com
Wed Mar 15 14:32:18 UTC 2017


 vcl/qa/cppunit/jpeg/JpegReaderTest.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e44a0d05eaf3163733b19a3dcfcd66f7088142e0
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 15 15:31:42 2017 +0100

    Improve test failure output
    
    Change-Id: I1678e746b8b37750b488b3328ad915d7ae50caef

diff --git a/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx b/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx
index 573d363..127de3c 100644
--- a/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx
+++ b/vcl/qa/cppunit/jpeg/JpegReaderTest.cxx
@@ -96,8 +96,8 @@ Bitmap JpegReaderTest::loadJPG(const OUString& aURL)
     GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter();
     Graphic aGraphic;
     SvFileStream aFileStream(aURL, StreamMode::READ);
-    bool bResult = rFilter.ImportGraphic(aGraphic, aURL, aFileStream) == 0;
-    CPPUNIT_ASSERT(bResult);
+    sal_uInt16 bResult = rFilter.ImportGraphic(aGraphic, aURL, aFileStream);
+    CPPUNIT_ASSERT_EQUAL(sal_uInt16(0), bResult);
     return aGraphic.GetBitmapEx().GetBitmap();
 }
 


More information about the Libreoffice-commits mailing list