Skip the tst_QSettings::testRegistryShortRootNames

The test is failing on aarch64 VM, when attempt reading
QSettings::childGroups for HKEY_CLASSES_ROOT. The returned list
contain precending '*'(astersk) node, which disappears at the second
call.

Task-number: QTBUG-135470
Change-Id: Ia8bb4c90d504353bb4e699a8133d63e7bae7afb3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Alexey Edelev 2025-04-02 18:58:49 +02:00
parent 23357e59bb
commit a42fbfba26

View File

@ -2355,6 +2355,8 @@ void tst_QSettings::testRegistryShortRootNames()
{
#ifndef Q_OS_WIN
QSKIP("This test is specific to the Windows registry only.");
#elif defined(Q_PROCESSOR_ARM)
QSKIP("This test fails on Windows for ARM. See QTBUG-135470.");
#else
QVERIFY(QSettings("HKEY_CURRENT_USER", QSettings::NativeFormat).childGroups() == QSettings("HKCU", QSettings::NativeFormat).childGroups());
QVERIFY(QSettings("HKEY_LOCAL_MACHINE", QSettings::NativeFormat).childGroups() == QSettings("HKLM", QSettings::NativeFormat).childGroups());