dbus test failures on Mac OS X

Benjamin Reed rangerrick at gmail.com
Thu Jun 1 12:55:48 BST 2006


On 6/1/06, Thiago Macieira <thiago at kde.org> wrote:

> No connection to the system bus. Is the system bus daemon running? Is HAL
> running?
>
> I don't think MacOS X uses HAL, so probably not.

Ah, yeah, no system bus, I'd only started a session bus.  In theory,
HAL could be ported and send events just as easily as on linux, but I
doubt anyone's done so yet.

That at least explains it.  :)

> The interesting thing is that there is no "got message" for the reply. I
> wonder if this is something I did wrong in the debugging or if no reply
> actually happened.
>
> Please try running "qpong/qpong &" manually before tst_qdbusmarshall so
> that the debugging output for the ping-pong is shown too.
>
> It looks like the qpong program died or something, because it stopped
> replying completely.

That did it.  Now everything but one test (and hal) work:

QDEBUG : tst_QDBusMarshall::sendStringMapOfMap(bytearray) got message:
QDBusMessage(type=MethodReturn, service=":1.15", path="",
interface="", name="", signature="a{sa{say}}",
contents=(QVariantMap(("foo", QVariantMap(("bar", QByteArray("foo"))
("foo", QByteArray("foo")) )) ) ) )
QDEBUG : tst_QDBusMarshall::sendStringMapOfMap(hugebytearray) sending
message: QDBusMessage(type=MethodCall, service="org.kde.selftest",
path="/org/kde/selftest", interface="org.kde.selftest", name="ping",
signature="", contents=(QVariantMap(("foo", QVariantMap(("bar",
QByteArray("
got message: QDBusMessage(type=MethodCall, service=":1.17",
path="/org/kde/selftest", interface="org.kde.selftest", name="ping",
signature="a{sa{say}}", contents=(QVariantMap(("foo",
QVariantMap(("bar", QByteArray(" sending message:
QDBusMessage(type=MethodReturn, service="", path="", interface="",
name="", signature="a{sa{say}}", contents=(QVariantMap(("foo",
QVariantMap(("bar", QByteArray("
FAIL!  : tst_QDBusMarshall::sendStringMapOfMap(hugebytearray) Compared
values are not the same
   Actual (reply.signature()):
   Expected ("a{sa{s" + sig + "}}"): a{sa{say}}
   Loc: [/Users/ranger/cvs/kdesupport/qt-dbus/selftests/qdbusmarshall/tst_qdbusmarshall.cpp(323)]
QDEBUG : tst_QDBusMarshall::sendStringMapOfMap(emptyboollist) sending
message: QDBusMessage(type=MethodCall, service="org.kde.selftest",
path="/org/kde/selftest", interface="org.kde.selftest", name="ping",
signature="", contents=(QVariantMap(("foo", QVariantMap(("bar",
QList<bool>(() )) ("foo", QList<bool>(() )) )) ) ) )
got message: QDBusMessage(type=MethodCall, service=":1.17",
path="/org/kde/selftest", interface="org.kde.selftest", name="ping",
signature="a{sa{sab}}", contents=(QVariantMap(("foo",
QVariantMap(("bar", QList<bool>(() )) ("foo", QList<bool>(() )) )) ) )
)
sending message: QDBusMessage(type=MethodReturn, service="", path="",
interface="", name="", signature="a{sa{sab}}",
contents=(QVariantMap(("foo", QVariantMap(("bar", QList<bool>(() ))
("foo", QList<bool>(() )) )) ) ) )

> >... this is Qt 4.1.3 plus qt-patches as of revision 544500 (the only
> >new patch since I built my Qt is 0132-qdate-extendedrange.diff).
>
> Completely unrelated, since DBUS does not support QDates.

yeah, just making sure you knew I was reasonably up-to-date.  :)




More information about the kde-core-devel mailing list