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

tst_qdbusmarshall depends on a specific QHash ordering

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 4.8.0, 5.0.0
    • Fix Version/s: 5.0.0 Beta 1, 5.0.0
    • Component/s: D-Bus
    • Labels:
      None
    • Commits:
      bc4f74f5863fc0d6cad891632019c37a9e38617d

      Description

      Some data rows are depending on a specific QHash ordering: changing qHash or randomizing QHash will cause the tests to fail.

      FAIL!  : tst_QDBusMarshall::sendMaps(gs-map) Compared values are not the same
         Actual   (QDBusUtil::argumentToString(reply.arguments().at(i))): [Argument: a{gs} {[Signature: i] = "int32", [Signature: a{gs}] = "array of dict_entry of (signature, string)", [Signature: s] = "string"}]
         Expected (stringResult): [Argument: a{gs} {[Signature: a{gs}] = "array of dict_entry of (signature, string)", [Signature: i] = "int32", [Signature: s] = "string"}]
         Loc: [../tst_qdbusmarshall.cpp(779)]
      FAIL!  : tst_QDBusMarshall::sendMaps(sv-map2) Compared values are not the same
         Actual   (QDBusUtil::argumentToString(reply.arguments().at(i))): [Argument: a{sv} {"gsmap" = [Variant: [Argument: a{gs} {[Signature: i] = "int32", [Signature: a{gs}] = "array of dict_entry of (signature, string)", [Signature: s] = "string"}]], "ismap" = [Variant: [Argument: a{is} {-47 = "c", 1 = "a", 2000 = "b"}]], "osmap" = [Variant: [Argument: a{os} {[ObjectPath: /] = "root", [ObjectPath: /bar/baz] = "bar and baz", [ObjectPath: /foo] = "foo"}]], "ssmap" = [Variant: [Argument: a{ss} {"a" = "a", "b" = "c", "c" = "b"}]]}]
         Expected (stringResult): [Argument: a{sv} {"gsmap" = [Variant: [Argument: a{gs} {[Signature: a{gs}] = "array of dict_entry of (signature, string)", [Signature: i] = "int32", [Signature: s] = "string"}]], "ismap" = [Variant: [Argument: a{is} {-47 = "c", 1 = "a", 2000 = "b"}]], "osmap" = [Variant: [Argument: a{os} {[ObjectPath: /] = "root", [ObjectPath: /bar/baz] = "bar and baz", [ObjectPath: /foo] = "foo"}]], "ssmap" = [Variant: [Argument: a{ss} {"a" = "
         Loc: [../tst_qdbusmarshall.cpp(779)]
      FAIL!  : tst_QDBusMarshall::sendComplex(sv-map) Compared values are not the same
         Actual   (QDBusUtil::argumentToString(reply.arguments().at(i))): [Argument: a{sv} {"a" = [Variant(int): 1], "b" = [Variant(QByteArray): {99}], "c" = [Variant(QString): "b"], "d" = [Variant(uint): 42], "date" = [Variant: [Argument: (iii) 1977, 1, 1]], "datetime" = [Variant: [Argument: ((iii)(iiii)i) [Argument: (iii) 0, 0, 0], [Argument: (iiii) 8, 59, 31, 0], 0]], "dtlist" = [Variant: [Argument: a((iii)(iiii)i) {[Argument: ((iii)(iiii)i) [Argument: (iii) 0, 0, 0], [Argument: (iiii) -1, -1, -1, -1], 0], [Argument: ((iii)(iiii)i) [Argument: (iii) 1977, 9, 13], [Argument: (iiii) 0, 0, 0, 0], 0], [Argument: ((iii)(iiii)i) [Argument: (iii) 2006, 6, 18], [Argument: (iiii) 13, 14, 0, 0], 0]}]], "e" = [Variant(short): -47], "f" = [Variant: [Variant(int): 0]], "gsmap" = [Variant: [Argument: a{gs} {[Signature: i] = "int32", [Signature: a{gs}] = "array of dict_entry of (signature, string)", [Signature: s] = "string"}]], "ismap" = [Variant: [Argument: a{is} {-47 = "c", 1 = "a", 2000 = "
         Loc: [../tst_qdbusmarshall.cpp(779)]
      
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              thiago Thiago Macieira
              Reporter:
              peppe Giuseppe D'Angelo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes