mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-03-23 18:54:01 +08:00
Ignore BitmapBundle::ArtProvider test failing under xvfb with Qt < 5.12
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user