From d8263f8d6d339d4a11053b88616174917e0d8948 Mon Sep 17 00:00:00 2001 From: ali kettab Date: Fri, 20 Feb 2026 23:47:56 +0100 Subject: [PATCH] Ignore BitmapBundle::ArtProvider test failing under xvfb with Qt < 5.12 --- tests/graphics/bmpbundle.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/graphics/bmpbundle.cpp b/tests/graphics/bmpbundle.cpp index 813fe868b9..042285d927 100644 --- a/tests/graphics/bmpbundle.cpp +++ b/tests/graphics/bmpbundle.cpp @@ -22,6 +22,10 @@ #include "wx/msw/private/resource_usage.h" #endif // __WXMSW__ +#ifdef __WXQT__ + #include // QT_VERSION and QT_VERSION_CHECK +#endif + #include "asserthelper.h" // ---------------------------------------------------------------------------- @@ -536,6 +540,16 @@ TEST_CASE("BitmapBundle::ArtProvider", "[bmpbundle][art]") #endif ; +#ifdef __WXQT__ + #if ( QT_VERSION < QT_VERSION_CHECK(5, 12, 0) ) + if ( IsRunningUnderXVFB() ) + { + WARN("Ignoring test failing under xvfb with Qt < 5.12"); + return; + } + #endif // QT < 5.12 +#endif // __WXQT__ + // We also need to use an image provided by Tango but not by the native art // provider, but here we can at least avoid the platform checks by using an // image not provided by any native providers.