Fix test on FreeBSD which uses the same backend as Linux

Change-Id: Ibc43b9f3d0fc9e343b0ff9abd627ee9afb881d69
Reviewed-on: https://gerrit.libreoffice.org/20624
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
This commit is contained in:
Baptiste Daroussin
2015-12-10 17:28:15 +01:00
committed by Miklos Vajna
parent 961727a6e7
commit c68b47ea1a

View File

@@ -70,7 +70,7 @@ void BitmapTest::testConvert()
CPPUNIT_ASSERT_EQUAL(sal_uInt16(24), aBitmap.GetBitCount());
{
Bitmap::ScopedReadAccess pReadAccess(aBitmap);
#if defined LINUX
#if defined LINUX || defined FREEBSD
// 24 bit Bitmap on SVP backend uses 32bit BGRA format
CPPUNIT_ASSERT_EQUAL(static_cast<sal_uInt16>(32), pReadAccess->GetBitCount());
CPPUNIT_ASSERT_EQUAL(sal_uLong(40), pReadAccess->GetScanlineSize());