[evolution-data-server/openismus-work] 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] client-test-utils.c: Only use	direct access if DEBUG_DIRECT env var is set
 
- Date: Wed, 28 Nov 2012 13:21:36 +0000 (UTC)
 
commit 2229923dfa29a56ba853af0db35802d58800ed2a
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 fe0204b..578d851 100644
--- a/tests/libebook/client/client-test-utils.c
+++ b/tests/libebook/client/client-test-utils.c
@@ -321,7 +321,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]