1 | /* Integration tests for monitor-mode D-Bus connections |
2 | * |
3 | * Copyright © 2010-2011 Nokia Corporation |
The © symbol is corrupted for me, but this could be a Bugzilla/Splinter problem. |
450 | DBusMessage **message_p = data; |
451 | |
452 | *message_p = dbus_pending_call_steal_reply (pc); |
453 | g_assert (*message_p != NULL); |
454 | } |
You have previously factored this out as test_pending_call_store_reply() in bug #88810. |
550 | g_assert_cmpint (ret, ==, DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER); |
551 | |
552 | while (!got_unique || !got_a || !got_b || !got_c) |
553 | { |
554 | test_main_context_iterate (f->ctx, TRUE); |
It might make sense to add a timeout to this loop so the test can’t continue forever if there’s a bug. |
605 | become_monitor (f); |
606 | |
607 | while (!lost_unique || !lost_a || !lost_b || !lost_c) |
608 | { |
609 | test_main_context_iterate (f->ctx, TRUE); |
Same here: timeout? |
660 | g_assert (!dbus_connection_get_is_connected (f->monitor)); |
661 | |
662 | while (TRUE) |
663 | { |
664 | test_main_context_iterate (f->ctx, TRUE); |
And here, throughout the rest of the file, etc. |
769 | "BroadcastSignal1", "", NULL); |
770 | dbus_message_unref (m); |
771 | |
772 | /* FIXME: dbus-daemon does not fake a denial message for the monitor's |
773 | * benefit; should it? */ |
Not sure this is addressed in a later patch. Should it be? I can imagine the monitor being used to diagnose exactly these kinds of denial issues, so I guess a message should be faked. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.