Skip test which resizes window in graphic scene while using EGLFS

This test is resizing top window, which is not supported in EGLFS,
so this test needs to be turned off.

Pick-to: 6.7
Task-number: QTBUG-115777
Change-Id: Idb81802399fe5bd9af3f342692d2212cd06ead9c
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
This commit is contained in:
Tomasz Kozlowski 2023-11-06 11:13:37 +01:00 committed by Tomasz Kozłowski
parent d8cd56df6b
commit 061a2012ad

View File

@ -2680,6 +2680,9 @@ void tst_QGraphicsScene::renderItemsWithNegativeWidthOrHeight()
#ifdef Q_OS_ANDROID
QSKIP("Test only works on platforms with resizable windows");
#endif
if (QGuiApplication::platformName().startsWith(QLatin1String("eglfs"), Qt::CaseInsensitive))
QSKIP("EGLFS does not allow resizing on top window");
QGraphicsScene scene(0, 0, m_testSize.width(), m_testSize.height());
// Add item with negative width.