From 52fe1d9d9e7b02891e931eb2e462a606faaf79d1 Mon Sep 17 00:00:00 2001 From: Elias Toivola Date: Tue, 6 May 2025 12:17:40 +0300 Subject: [PATCH] Windows 11 24H2: skip crashing tst_qnetworkinformation_appless MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Current Windows 11 24H2 build version is 26100. It is assumed Windows 11 25H2 build version will be >26200, this is added to the if-condition so >25H2 will not be skipped. Task-number: QTBUG-136628 Task-number: QTBUG-135599 Change-Id: I2d39fd4f9db546f2d7c7db17f6569708255579b3 Reviewed-by: MÃ¥rten Nordheim --- .../tst_qnetworkinformation_appless.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/auto/network/kernel/qnetworkinformation_appless/tst_qnetworkinformation_appless.cpp b/tests/auto/network/kernel/qnetworkinformation_appless/tst_qnetworkinformation_appless.cpp index b08843314a6..99e45d55a2c 100644 --- a/tests/auto/network/kernel/qnetworkinformation_appless/tst_qnetworkinformation_appless.cpp +++ b/tests/auto/network/kernel/qnetworkinformation_appless/tst_qnetworkinformation_appless.cpp @@ -4,6 +4,7 @@ #include #include #include +#include class tst_QNetworkInformation_appless : public QObject { @@ -14,6 +15,16 @@ private slots: void tst_QNetworkInformation_appless::reinit() { + + #if QT_CONFIG(cpp_winrt) + if (QOperatingSystemVersion::current() >= + QOperatingSystemVersion(QOperatingSystemVersion::Windows11_24H2) && + QOperatingSystemVersion::current() < + QOperatingSystemVersion(QOperatingSystemVersion::Windows, 10, 0, 26200)) { + QSKIP("This test crashes on Windows 11 24H2. QTBUG-135599"); + } + #endif + int argc = 1; char name[] = "./test"; char *argv[] = { name, nullptr };