aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-22 09:35:11 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-22 09:35:11 +0800
commite8a2fed920088141d8ed47c6803bc166b18c5418 (patch)
treeadcebb99ddf323a7c408145556b000b2862ff8d9 /tests
parent8fbfb0ae4829f216501380e2f63ed6b4cc1a3306 (diff)
downloadgsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.gz
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.bz2
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.lz
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.xz
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.zst
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.zip
add exception handling everywhere in the store related functions
2000-01-21 bertrand <bertrand@helixcode.com> * camel/camel-store.c: add exception handling everywhere in the store related functions arguments. * camel/providers/mbox/camel-mbox-folder.c: idem * camel/providers/mbox/camel-mbox-folder.h: idem * camel/providers/mbox/camel-mbox-store.h: idem * camel/providers/mbox/Makefile.am (libcamelmbox_la_SOURCES): added camel-mbox-provider.c to the mbox provider sources. svn path=/trunk/; revision=1605
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/test10.c50
2 files changed, 52 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a7f0cb1883..5bdb8a806f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,4 +31,5 @@ noinst_PROGRAMS = \
test3 \
test7 \
test8 \
- test9
+ test9 \
+ test10
diff --git a/tests/test10.c b/tests/test10.c
new file mode 100644
index 0000000000..3db63bfd3e
--- /dev/null
+++ b/tests/test10.c
@@ -0,0 +1,50 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
+
+#include "camel.h"
+#include "camel-mbox-folder.h"
+#include "camel-mbox-parser.h"
+#include "camel-mbox-utils.h"
+#include "camel-mbox-summary.h"
+#include "camel-log.h"
+#include "camel-exception.h"
+#include "md5-utils.h"
+#include <sys/types.h>
+#include <unistd.h>
+#include <errno.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <glib.h>
+
+int
+main (int argc, char**argv)
+{
+ CamelSession *session;
+ CamelException *ex;
+ CamelStore *store;
+ gchar *store_url = "mbox:///tmp/evmail";
+ CamelFolder *folder;
+
+
+ camel_debug_level = 10;
+
+ gtk_init (&argc, &argv);
+ camel_init ();
+ ex = camel_exception_new ();
+ camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so");
+
+ session = camel_session_new ();
+ store = camel_session_get_store (session, store_url);
+
+
+ folder = camel_store_get_folder (store, "Inbox");
+
+ camel_folder_open (folder, FOLDER_OPEN_RW, ex);
+
+
+ return 1;
+}
+
+
+