From f2ccf51ea47657f0d89e6983494d6b711f5fc16b Mon Sep 17 00:00:00 2001
From: Sankhesh Jhaveri <sankhesh.jhaveri@kitware.com>
Date: Tue, 27 Apr 2021 13:21:19 -0400
Subject: [PATCH] Exclude some of the QtQuick tests on problem CI machines

---
 .gitlab/ci/ctest_exclusions.cmake | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/.gitlab/ci/ctest_exclusions.cmake b/.gitlab/ci/ctest_exclusions.cmake
index 69e9bf266aa..a20b6f78fd6 100644
--- a/.gitlab/ci/ctest_exclusions.cmake
+++ b/.gitlab/ci/ctest_exclusions.cmake
@@ -18,6 +18,9 @@ if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "fedora")
     # Numerical problems?
     "^VTK::FiltersOpenTURNSCxx-TestOTKernelSmoothing$"
 
+    # QtQuick event loop issue with CI VNC
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItemWidget$"
+
     # These tests all seem to have some problem with the rendering order of
     # some components of the scenes that are being tested. Needs investigation.
     # https://gitlab.kitware.com/vtk/vtk/-/issues/18098
@@ -146,7 +149,10 @@ if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "windows")
     "^VTK::GUISupportQtCxx-TestQVTKOpenGLWidgetPicking$"
     "^VTK::GUISupportQtCxx-TestQVTKOpenGLWidgetQWidgetWidget$"
     "^VTK::GUISupportQtCxx-TestQVTKOpenGLWidgetWithDisabledInteractor$"
-    "^VTK::GUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA$")
+    "^VTK::GUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA$"
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItem$"
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItemWidget$"
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderWindow$")
 endif ()
 
 if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "osmesa")
@@ -158,6 +164,14 @@ if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "osmesa")
     "^VTK::RenderingOpenGL2Cxx-TestGlyph3DMapperPickability$")
 endif ()
 
+if ("$ENV{CMAKE_CONFIGURATION}" MATCHES "macos")
+  list(APPEND test_exclusions
+    # QtQuick event loop / OpenGL context issues. Needs investigation
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItem$"
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderItemWidget$"
+    "^VTK::GUISupportQtQuickCxx-TestQQuickVTKRenderWindow$")
+endif ()
+
 string(REPLACE ";" "|" test_exclusions "${test_exclusions}")
 if (test_exclusions)
   set(test_exclusions "(${test_exclusions})")
-- 
GitLab