diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-03-23 13:40:13 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2016-03-25 11:05:47 +0000 |
commit | 96c1ae1d8e78ae8b9bd7d4001645cad24d62b720 (patch) | |
tree | 1482b9e0b899a783f64aaed3b9728533a81eff58 /vcl/qa | |
parent | 44a6d8ac3063511a149d4abdd6c2a556b3f477fe (diff) |
fix headless build
disables OpenGL and glew usage, lets --without-gui do what
--without-x did before and disables X related test
Change-Id: I680b47c9962a0d43c8ece593db0b82e347ceebdb
Reviewed-on: https://gerrit.libreoffice.org/23474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/BitmapTest.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/BitmapTest.cxx b/vcl/qa/cppunit/BitmapTest.cxx index 4336e6bb7e87..d2444b15abc8 100644 --- a/vcl/qa/cppunit/BitmapTest.cxx +++ b/vcl/qa/cppunit/BitmapTest.cxx @@ -21,7 +21,10 @@ #include <rtl/strbuf.hxx> #include <tools/stream.hxx> #include <vcl/graphicfilter.hxx> +#include <config_features.h> +#if HAVE_FEATURE_OPENGL #include <vcl/opengl/OpenGLHelper.hxx> +#endif #include "BitmapSymmetryCheck.hxx" @@ -55,9 +58,11 @@ void BitmapTest::testConvert() //it would be nice to find and change the stride for quartz to be the same as everyone else CPPUNIT_ASSERT_EQUAL(static_cast<sal_uLong>(10), pReadAccess->GetScanlineSize()); #else +#if HAVE_FEATURE_OPENGL if (!OpenGLHelper::isVCLOpenGLEnabled()) CPPUNIT_ASSERT_EQUAL(static_cast<sal_uLong>(12), pReadAccess->GetScanlineSize()); #endif +#endif CPPUNIT_ASSERT(pReadAccess->HasPalette()); const BitmapColor& rColor = pReadAccess->GetPaletteColor(pReadAccess->GetPixelIndex(1, 1)); CPPUNIT_ASSERT_EQUAL(sal_Int32(204), sal_Int32(rColor.GetRed())); |