[evolution-data-server/openismus-work-master: 11/12] 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: 11/12] client-test-utils.c: Only use direct access if DEBUG_DIRECT env var is set
- Date: Fri, 25 Jan 2013 07:16:01 +0000 (UTC)
commit 6de29688a378beb4cb17be50205784c10d32b4d3
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]