summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-11-17 12:28:08 +0100
committerRobert Griebl <robert.griebl@qt.io>2023-11-20 11:53:49 +0100
commitca2525345691bd53d5b58a3d39293e03ad6d9435 (patch)
tree48d43400842c82d25fd7fb9ad8318dda2c08ca6d /tests
parent453e5ec3292cd80bbb70989e8dcc364e1d1205f5 (diff)
Make it easier to run unit tests against older, buggy Qt versions
Change-Id: Id0803f115649059e30e44cc2076e162124381ba2 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/windowmapping/tst_windowmapping.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/windowmapping/tst_windowmapping.qml b/tests/auto/qml/windowmapping/tst_windowmapping.qml
index d179376a..99f7e1ed 100644
--- a/tests/auto/qml/windowmapping/tst_windowmapping.qml
+++ b/tests/auto/qml/windowmapping/tst_windowmapping.qml
@@ -174,6 +174,11 @@ TestCase {
app.start("hide-sub");
expectedWindowCount -= 1;
+ if ((PackageManager.compareVersions(AmTest.qtVersion, "6.7.0") < 0)
+ && !ApplicationManager.singleProcess) {
+ // old pre-6.7, broken QWindow behavior
+ expectedWindowCount += 1;
+ }
tryCompare(WindowManager, "count", expectedWindowCount, spyTimeout);
}