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

Missing QTest::toString(q/uint128)

    XMLWordPrintable

Details

    • 3
    • Foundation Sprint 90, Foundation Sprint 91, Foundation Sprint 92, Foundation Sprint 93, Foundations Sprint 94, Foundations Sprint 95, Foundations Sprint 96

    Description

      When Qt 6.6 added support for q(u)int128, it forgot to add QTest::toString() support for it. Without it, it's pretty hard to write tests using those types.

      We already have a local implementation in tst_qglobal.cpp, just need to extract it, polish it, and somehow get it into tst_selftest.

      TODO: Can we use qint128 under QT_SUPPORTS_INT128 protection, or do we require builds with and without __int128 support to be BC?

      Acceptance criteria:

      • QTest::toString() works with qint128 and quint128 on all QT_SUPPORTS_INT128 platforms
        • not by falling back on one of the narrower integer types
      • checked by tst_selftest

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change