From 84423c930ecc93ce93040bfd49e20c68670d4364 Mon Sep 17 00:00:00 2001 From: bertrand Date: Sat, 22 Jan 2000 02:58:12 +0000 Subject: test the mbox provider. 2000-01-21 bertrand * tests/test10.c: test the mbox provider. * camel/camel-folder.c (_set_name): if camel_folder_get_mode returns an exception, return it instead of overriding it with a new one. (camel_folder_is_open): make the is_open method public. (_set_name): use the is_open instead of get_mode. (_set_name): set the fullname even in the case where the folder has no parent. (_set_name): use %c, not %d to add the separator char into the full path. svn path=/trunk/; revision=1606 --- tests/test10.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test10.c b/tests/test10.c index 3db63bfd3e..deeed0b0ac 100644 --- a/tests/test10.c +++ b/tests/test10.c @@ -38,10 +38,14 @@ main (int argc, char**argv) store = camel_session_get_store (session, store_url); - folder = camel_store_get_folder (store, "Inbox"); - + folder = camel_store_get_folder (store, "Inbox", ex); + if (camel_exception_get_id (ex)) { + printf ("Exception caughy in camel_store_get_folder" + "Full description : %s\n", camel_exception_get_description (ex)); + } camel_folder_open (folder, FOLDER_OPEN_RW, ex); + camel_folder_close (folder, FALSE, ex); return 1; } -- cgit v1.2.3