[evolution-data-server/openismus-work-master: 8/16] client-test-utils.c: Only use direct access if DEBUG_DIRECT env var is set
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-master: 8/16] client-test-utils.c: Only use direct access if DEBUG_DIRECT env var is set
- Date: Tue, 22 Jan 2013 06:10:41 +0000 (UTC)
commit 35e2f05b23f4c5fbebe0a912211befbc052811a0
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Wed Nov 28 21:00:53 2012 +0900
client-test-utils.c: Only use direct access if DEBUG_DIRECT env var is set
tests/libebook/client/client-test-utils.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/libebook/client/client-test-utils.c b/tests/libebook/client/client-test-utils.c
index d633a1d..1da94dc 100644
--- a/tests/libebook/client/client-test-utils.c
+++ b/tests/libebook/client/client-test-utils.c
@@ -337,7 +337,11 @@ create_book_idle (CreateBookData *data)
if (!data->source)
g_error ("Unable to fetch newly created source uid '%s' from the registry", data->uid);
- data->book = e_book_client_new_direct (data->registry, data->source, &error);
+ if (g_getenv ("DEBUG_DIRECT") != NULL)
+ data->book = e_book_client_new_direct (data->registry, data->source, &error);
+ else
+ data->book = e_book_client_new (data->source, &error);
+
if (!data->book)
g_error ("Unable to create the book: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]