Ignore BitmapBundle::ArtProvider test failing under xvfb with Qt < 5.12

This commit is contained in:
ali kettab
2026-02-20 23:47:56 +01:00
parent 20437b4973
commit d8263f8d6d

View File

@@ -22,6 +22,10 @@
#include "wx/msw/private/resource_usage.h"
#endif // __WXMSW__
#ifdef __WXQT__
#include <QtGlobal> // 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.