test-client-view-operations.c: Now test both direct access and indirect access
authorTristan Van Berkom <tristanvb@openismus.com>
Mon, 25 Feb 2013 10:35:20 +0000 (19:35 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Mon, 25 Feb 2013 10:37:00 +0000 (19:37 +0900)
This works properly now since we fixed (or worked around) issues in the
test fixtures. Since we use a separate ESource UID (sandbox) for each
test case this now works properly.

tests/libebook/client/test-client-view-operations.c

index d1192de..8911976 100644 (file)
@@ -8,7 +8,7 @@
 #include "client-test-utils.h"
 #include "e-test-server-utils.h"
 
-/* static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 }; */
+static ETestServerClosure book_closure = { E_TEST_SERVER_ADDRESS_BOOK, NULL, 0 };
 static ETestServerClosure direct_book_closure = { E_TEST_SERVER_DIRECT_ADDRESS_BOOK, NULL, 0 };
 
 #define N_THREADS  5
@@ -262,8 +262,8 @@ main (gint argc,
        /* Run Direct Access only to protect against lockups, this second iteration fails
         * while adding the initial contact, don't know why yet.
         */
-       /* g_test_add ("/EBookClient/ConcurrentViews", ETestServerFixture, &book_closure, */
-       /*          e_test_server_utils_setup, test_concurrent_views, e_test_server_utils_teardown); */
+       g_test_add ("/EBookClient/ConcurrentViews", ETestServerFixture, &book_closure,
+                   e_test_server_utils_setup, test_concurrent_views, e_test_server_utils_teardown);
 
        return e_test_server_utils_run ();
 }