[libgnome-keyring] Use a longer timeout for dbus calls when built with --enable-tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-keyring] Use a longer timeout for dbus calls when built with --enable-tests
- Date: Wed, 9 Mar 2011 09:29:46 +0000 (UTC)
commit 3cf38843ce8ef5dc2370563f7af361aa0dca745b
Author: Stef Walter <stefw collabora co uk>
Date: Wed Mar 9 10:25:44 2011 +0100
Use a longer timeout for dbus calls when built with --enable-tests
library/gkr-operation.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/library/gkr-operation.c b/library/gkr-operation.c
index d809696..7600cd7 100644
--- a/library/gkr-operation.c
+++ b/library/gkr-operation.c
@@ -358,15 +358,21 @@ on_pending_call_notify (DBusPendingCall *pending, void *user_data)
void
gkr_operation_request (GkrOperation *op, DBusMessage *req)
{
+ int timeout = -1;
+
g_return_if_fail (req);
g_assert (op);
+#if WITH_TESTS
+ timeout = INT_MAX;
+#endif
+
if (!op->conn)
op->conn = connect_to_service ();
if (op->conn) {
g_assert (!op->pending);
- if (!dbus_connection_send_with_reply (op->conn, req, &op->pending, -1))
+ if (!dbus_connection_send_with_reply (op->conn, req, &op->pending, timeout))
g_return_if_reached ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]