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

tst_Collections::insert_remove_loop fails with MSVC2019

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.13.2, 5.14.0 Beta 1
    • 5.13
    • Core: Other
    • None
    • Windows
    • 74179a209a8ccdc771b0218f430d5a0519bc619a (qt/qtbase/5.13)

    Description

      This test will fail with Windows 10 X64 and MSVC 2019

      http://coin:8080/coin/integration/qt/qt5/tasks/1564466065

      http://coin:8080/coin/api/results/qt/qtbase/ed83933e4f6a9d40c546c85aa136f18ce927dfc8/WindowsWindows_10x86_64WindowsWindows_10x86_64MSVC2019qtci-windows-10-x86_64-15-2b0451/645d308aa34a38f494d10ed03d92e41a3a439fd8/test_1564466236/log.txt.gz

      QDEBUG : tst_Collections::insert_remove_loop() class QVarLengthArray<int,15>
      FAIL!  : tst_Collections::insert_remove_loop() Compared values are not the same
         Actual   (t[i])                      : 2
         Expected (T(IntOrString(expect1[i]))): 3
      .\tst_collections.cpp(3542) : failure location
      

      That is

          QVarLengthArray<int,15> t;
          t.append(1);
          t << 2;
          t += 3;
          t.prepend(4);
          qDebug() << t;
      

      produces

      QVarLengthArray<int,15>(4)[4, 1, 2, 2 ]
      

      (end element is incorrect) if append() is directly followed by prepend() (no qDebug() or similar in between). prepend() calls insert(cbegin()), so, the issue is around src\corelib\tools\qvarlengtharray.h:493 (5.12).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mmutz Marc Mutz
              hehalmet Heikki Halmet
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes