From 9a0bc1b58b775209417582867c713b2015353a78 Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Mon, 2 Mar 2020 15:36:13 +0200 Subject: [core] Add snapshotter unit tests --- test/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 75d5ee3ef8..0248582c61 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -105,6 +105,17 @@ add_library( ${PROJECT_SOURCE_DIR}/test/util/url.test.cpp ) +# MapSnapshotter uses headless backend that is rendering image on a background thread. QT / macOS adaptation for headless backend creates +# new window and updates it's parameters, which is not allowed since macOS mohave 10.14. Following block disables snapshotter unit tests for +# QT on macOS. https://github.com/mapbox/mapbox-gl-native/issues/16267 +if(NOT (MBGL_WITH_QT AND CMAKE_SYSTEM_NAME STREQUAL Darwin)) + target_sources( + mbgl-test + PRIVATE + ${PROJECT_SOURCE_DIR}/platform/default/src/mbgl/map/map_snapshotter.cpp ${PROJECT_SOURCE_DIR}/test/map/map_snapshotter.test.cpp + ) +endif() + if(MBGL_WITH_OPENGL) target_sources( mbgl-test -- cgit v1.2.1