aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-07-03 12:52:20 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-03 12:55:28 +0000
commit5cd52cda24bf70bf99f4deec037039df0ab928f5 (patch)
treee2c968575abe24e79e1cae78738a3758253feb43 /sources/pyside2/tests
parentd850748283698596327653ec30decdbd6c964af8 (diff)
Terrible workaround fix for hanging tests on macOS 10.12
Starting with Qt 5.12-ish (qtbase commit c538a333db4b7526fb4d9a82c06296d2492bf000) the macOS QPA cocoa plugin switched to using layer-backed NSViews. For some unknown reason when building PySide2 with a python.org official interpreter and the above commit, none of the QWidget / NSViews get drawn (-[QNSView drawRect:] is not called). Using an older qtbase with the same official interepreter works. Using the same qtbase with a custom built interpreter works. Using the same qtbase with a custom built interpreter which is the same version as the official one (3.6.5 at the moment) works (built from v3.6.5 source package published on the downloads page). Using the same qtbase with official interpeter does NOT work. Python2 vs Python3 does not matter. Release vs Debug does not matter. I have not been able to build an interpreter with the minimum deployment target set to 10.6 as the official package does (but rather 10.12), so this is still an avenue to try. The terrible workaround is to disable layer-backed views via an environment variable when running testrunner (QT_MAC_WANTS_LAYER). All users would have to do the same for their own applications, otherwise they will not work. Change-Id: Ia9a34f1e7b0b1b4807030cc7acecbefc8f344e84 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/tests')
-rw-r--r--sources/pyside2/tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/CMakeLists.txt b/sources/pyside2/tests/CMakeLists.txt
index 2386950e9..bed2d7cc1 100644
--- a/sources/pyside2/tests/CMakeLists.txt
+++ b/sources/pyside2/tests/CMakeLists.txt
@@ -46,7 +46,7 @@ else()
set_tests_properties(${TEST_NAME} PROPERTIES
TIMEOUT ${CTEST_TESTING_TIMEOUT}
WILL_FAIL ${EXPECT_TO_FAIL}
- ENVIRONMENT "PYTHONPATH=${TEST_PYTHONPATH};${LIBRARY_PATH_VAR}=${TEST_LIBRARY_PATH};PYSIDE_DISABLE_INTERNAL_QT_CONF=1;QT_NO_GLIB=1")
+ ENVIRONMENT "PYTHONPATH=${TEST_PYTHONPATH};${LIBRARY_PATH_VAR}=${TEST_LIBRARY_PATH};PYSIDE_DISABLE_INTERNAL_QT_CONF=1;QT_NO_GLIB=1;QT_MAC_WANTS_LAYER=0")
endmacro()
if (NOT DISABLE_QtCore AND NOT DISABLE_QtGui AND NOT DISABLE_QtWidgets)