From 3110fd0809943560845465406b0ac3fccd9ab831 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 26 May 2020 10:16:34 +0200 Subject: Skip tests that use graphical effects on Win 7 It's not clear why these fail, but we can live without the test on Windows 7. Fixes: QTBUG-84443 Change-Id: Ib18dfc8e12528c5086d07d6018cda93fb6e8d30c Reviewed-by: Laszlo Agocs --- .../auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp | 3 +++ tests/auto/qquickpopup/tst_qquickpopup.cpp | 8 ++++++++ 2 files changed, 11 insertions(+) (limited to 'tests/auto') diff --git a/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp b/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp index b2c0c272..b907f5c3 100644 --- a/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp +++ b/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp @@ -35,6 +35,7 @@ ****************************************************************************/ #include +#include #include #include #include @@ -763,6 +764,8 @@ void tst_QQuickApplicationWindow::focusAfterPopupClosed() void tst_QQuickApplicationWindow::clearFocusOnDestruction() { + if (QOperatingSystemVersion::current() <= QOperatingSystemVersion::Windows7) + QSKIP("Test requires a version of Windows newer than 7: QTBUG-84443"); if (!canImportModule("import QtGraphicalEffects 1.15; DropShadow {}")) QSKIP("Test requires QtGraphicalEffects"); diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp index 620a6ec4..162a48ba 100644 --- a/tests/auto/qquickpopup/tst_qquickpopup.cpp +++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp @@ -40,6 +40,7 @@ #include "../shared/visualtestutil.h" #include "../shared/qtest_quickcontrols.h" +#include #include #include #include @@ -1266,6 +1267,8 @@ void tst_QQuickPopup::countChanged() // QTBUG-73243 void tst_QQuickPopup::toolTipCrashOnClose() { + if (QOperatingSystemVersion::current() <= QOperatingSystemVersion::Windows7) + QSKIP("Test requires a version of Windows newer than 7: QTBUG-84443"); if (!canImportModule("import QtGraphicalEffects 1.15; DropShadow {}")) QSKIP("Test requires QtGraphicalEffects"); @@ -1284,6 +1287,11 @@ void tst_QQuickPopup::toolTipCrashOnClose() void tst_QQuickPopup::setOverlayParentToNull() { + if (QOperatingSystemVersion::current() <= QOperatingSystemVersion::Windows7) + QSKIP("Test requires a version of Windows newer than 7: QTBUG-84443"); + if (!canImportModule("import QtGraphicalEffects 1.15; DropShadow {}")) + QSKIP("Test requires QtGraphicalEffects"); + QQuickApplicationHelper helper(this, "toolTipCrashOnClose.qml"); QQuickWindow *window = helper.window; -- cgit v1.2.3