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

tests/auto/qdbusconnection fails to build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.2
    • 4.7.1
    • D-Bus
    • None
    • opensolaris b134, sun studio 12.1, x86
    • eaa0529

      the test fails to build with
      ...
      "tst_qdbusconnection.cpp", line 301: Error: Could not find a match for QTest::qCompare<QTest::T>(QObject*, MyObject*, const char[29], const char[5], const char[24], int) needed in tst_QDBusConnection::registerObject().
      "tst_qdbusconnection.cpp", line 498: Error: Could not find a match for QTest::qCompare<QTest::T>(QObject*, TestObject*, const char[39], const char[12], const char[24], int) needed in tst_QDBusConnection::callSelf().

      the below patch fixed it for me:

      --- tst_qdbusconnection.cpp.orig        2010-11-14 15:53:52.929540937 +0100
      +++ tst_qdbusconnection.cpp     2010-11-14 16:00:28.021528834 +0100
      @@ -298,7 +298,7 @@
               // register one object at root:
               MyObject obj;
               QVERIFY(con.registerObject(path, &obj, QDBusConnection::ExportAllSlots));
      -        QCOMPARE(con.objectRegisteredAt(path), &obj);
      +        QCOMPARE(con.objectRegisteredAt(path), static_cast<QObject *>(&obj));
               QVERIFY(callMethod(con, path));
               QCOMPARE(obj.path, path);
           }
      @@ -495,7 +495,7 @@
           QDBusConnection connection = QDBusConnection::sessionBus();
           QVERIFY(connection.registerObject("/test", &testObject,
                   QDBusConnection::ExportAllContents));
      -    QCOMPARE(connection.objectRegisteredAt("/test"), &testObject);
      +    QCOMPARE(connection.objectRegisteredAt("/test"), static_cast<QObject *>(&testObject));
           QVERIFY(connection.registerService(serviceName()));
           QDBusInterface interface(serviceName(), "/test");
           QVERIFY(interface.isValid());
      

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

            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            hajma Pavel Heimlich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes