From 0eff8e4321d63ef1dce20cceae8314b3628767a4 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 21 Feb 2000 18:39:21 +0000 Subject: update for CamelSession changes svn path=/trunk/; revision=1889 --- tests/test10.c | 8 ++++++-- tests/test11.c | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test10.c b/tests/test10.c index a8835861d6..d8a8090138 100644 --- a/tests/test10.c +++ b/tests/test10.c @@ -81,8 +81,12 @@ main (int argc, char**argv) camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so"); session = camel_session_new (); - store = camel_session_get_store (session, store_url); - + store = camel_session_get_store (session, store_url, ex); + if (camel_exception_get_id (ex)) { + printf ("Exception caught in camel_session_get_store\n" + "Full description : %s\n", camel_exception_get_description (ex)); + return -1; + } folder = camel_store_get_folder (store, "Inbox", ex); if (camel_exception_get_id (ex)) { diff --git a/tests/test11.c b/tests/test11.c index 3c5fdeb9f4..de605365a6 100644 --- a/tests/test11.c +++ b/tests/test11.c @@ -41,7 +41,12 @@ main (int argc, char**argv) camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so.0"); session = camel_session_new (); - store = camel_session_get_store (session, store_url); + store = camel_session_get_store (session, store_url, ex); + if (camel_exception_get_id (ex)) { + printf ("Exception caught in camel_session_get_store\n" + "Full description : %s\n", camel_exception_get_description (ex)); + return -1; + } printf("get folder\n"); -- cgit v1.2.3