[evolution-data-server/openismus-work-master: 8/10] client-test-utils.c: Only use direct access if DEBUG_DIRECT env var is set



commit c1147ed3adcd5a6f48b43578e846eeaf528ace71
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]