Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135470

First access to QSettings("HKEY_CLASSES_ROOT").childGroups() has "*" node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • Core: I/O
    • None
    • Windows
    • a42fbfba2 (dev)

    Description

      The issue was revealed while attempt to integrate: https://codereview.qt-project.org/c/qt/qt5/+/622722/11

      There is no direct impact from the patchsets in the chain on QSettings or qtbuild. It's preliminary changes that will be used later. Meanwhile tst_qsettings fails on ARM64 windows VM when the respective vcpkg ports are provisioned.

      The reason is the tst_QSettings::testRegistryShortRootNames() test case:

      QVERIFY(QSettings("HKEY_CLASSES_ROOT", QSettings::NativeFormat).childGroups() == QSettings("HKCR", QSettings::NativeFormat).childGroups());
      

      On the VM it fails because the QSettings::childGroups for "HKEY_CLASSES_ROOT"(full name) return the list containing the preceding *(asterisk) node, while "HKCR" doesn't.

      Meanwhile calling the same method on the same QSettings instance second time lacks the
      *(asterisk) node and the test case passes. Same when calling it on a new QSettings instance.

      Attachments

        For Gerrit Dashboard: QTBUG-135470
        # Subject Branch Project Status CR V

        Activity

          People

            cnn Qt Core & Network
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes