aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-22 10:58:12 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-22 10:58:12 +0800
commit84423c930ecc93ce93040bfd49e20c68670d4364 (patch)
tree1eb47e691f93c353405d85a1d320442191f5f61b /tests
parente8a2fed920088141d8ed47c6803bc166b18c5418 (diff)
downloadgsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.tar
gsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.tar.gz
gsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.tar.bz2
gsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.tar.lz
gsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.tar.xz
gsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.tar.zst
gsoc2013-evolution-84423c930ecc93ce93040bfd49e20c68670d4364.zip
test the mbox provider.
2000-01-21 bertrand <bertrand@helixcode.com> * 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
Diffstat (limited to 'tests')
-rw-r--r--tests/test10.c8
1 files changed, 6 insertions, 2 deletions
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;
}