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

tst_qabstractitemmodel testChildrenLayoutsChanged test randomly fails due to randomizing QHash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      This is blocking integration in api_changes after QHash randomization was enabled by default: the testChildrenLayoutsChanged test of tst_qabstractitemmodel randomly fails. For instance:

      FAIL!  : tst_QAbstractItemModel::testChildrenLayoutsChanged() Compared values are not the same
         Actual   (p2FirstPersistent.row()): 0
         Expected (9): 9
         Loc: [tst_qabstractitemmodel.cpp(2138)]
      

      or

      FAIL!  : tst_QAbstractItemModel::testChildrenLayoutsChanged() Compared values are not the same
         Actual   (p2LastPersistent.row()): 9
         Expected (8): 8
         Loc: [tst_qabstractitemmodel.cpp(2139)]
      

      I don't know if it's a test issue, or the test is exposing a true problem inside QAIM.

        Attachments

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

          Activity

            People

            Assignee:
            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            Reporter:
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes