diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-20 04:14:15 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-20 04:14:15 +0800 |
commit | 5fb3a28aba18266a1cfc3759e6fc271a86531cb8 (patch) | |
tree | e39511d1d99ab08b529ea61f43df690b1f3b0b2a /camel/tests/folder | |
parent | 520d7194c4837f288733b29fa69f9cdde524fe38 (diff) | |
download | gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.tar gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.tar.gz gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.tar.bz2 gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.tar.lz gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.tar.xz gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.tar.zst gsoc2013-evolution-5fb3a28aba18266a1cfc3759e6fc271a86531cb8.zip |
Updated to pass the needed arguments to camel_init() and to init gthreads
2002-08-19 Jeffrey Stedfast <fejj@ximian.com>
* tests/lib/camel-test.c (camel_test_init): Updated to pass the
needed arguments to camel_init() and to init gthreads before camel
(since camel expectes it to be initialised already).
* tests/lib/session.c: #include <config.h> needed for
ENABLE_THREADS so that sizeof (CamelSessionClass) gives the
correct size.
* tests/*: Updated to work with camel API changes.
svn path=/trunk/; revision=17805
Diffstat (limited to 'camel/tests/folder')
-rw-r--r-- | camel/tests/folder/Makefile.am | 45 | ||||
-rw-r--r-- | camel/tests/folder/test3.c | 4 | ||||
-rw-r--r-- | camel/tests/folder/test8.c | 4 | ||||
-rw-r--r-- | camel/tests/folder/test9.c | 2 |
4 files changed, 30 insertions, 25 deletions
diff --git a/camel/tests/folder/Makefile.am b/camel/tests/folder/Makefile.am index 143fd7f4ad..6329ca289a 100644 --- a/camel/tests/folder/Makefile.am +++ b/camel/tests/folder/Makefile.am @@ -1,29 +1,28 @@ -INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir) -I$(top_srcdir)/camel \ - -I$(includedir) \ - -I$(top_srcdir)/camel/tests/lib \ - -DG_LOG_DOMAIN=\"evolution-tests\" +INCLUDES = \ + -I$(includedir) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/intl \ + -I$(top_srcdir)/e-util \ + -I$(top_srcdir)/camel \ + -I$(top_srcdir)/camel/tests/lib \ + -DG_LOG_DOMAIN=\"evolution-tests\" \ + $(CAMEL_CFLAGS) LDADD = \ - $(top_builddir)/camel/libcamel.la \ - $(top_builddir)/e-util/libeutil.la \ - $(top_builddir)/libibex/libibex.la \ - $(GNOME_LIBDIR) \ - $(top_builddir)/camel/tests/lib/libcameltest.a \ - $(GNOMEUI_LIBS) $(INTLLIBS) $(EVOLUTION_MAIL_LIBS) + $(top_builddir)/camel/libcamel.la \ + $(top_builddir)/e-util/libeutil.la \ + $(GNOME_LIBDIR) \ + $(top_builddir)/camel/tests/lib/libcameltest.a \ + $(GNOMEUI_LIBS) \ + $(INTLLIBS) \ + $(EVOLUTION_MAIL_LIBS) check_PROGRAMS = \ - test1 test4 test5 \ - test2 test6 test7 \ - test3 \ - test8 \ - test9 - -TESTS = test1 test4 test5 \ - test2 test6 test7 \ - test3 \ - test8 \ - test9 - - + test1 test2 test3 \ + test4 test5 test6 \ + test7 test8 test9 +TESTS = test1 test2 test3 \ + test4 test5 test6 \ + test7 test8 test9 diff --git a/camel/tests/folder/test3.c b/camel/tests/folder/test3.c index dc2946956f..14be8ed570 100644 --- a/camel/tests/folder/test3.c +++ b/camel/tests/folder/test3.c @@ -2,6 +2,8 @@ #include <gtk/gtk.h> +#include <string.h> + #include "camel-test.h" #include "messages.h" #include "folders.h" @@ -215,7 +217,7 @@ int main(int argc, char **argv) pull(); push("appending simple message %d", j); - camel_folder_append_message(folder, msg, NULL, ex); + camel_folder_append_message(folder, msg, NULL, NULL, ex); check_msg(!camel_exception_is_set(ex), "%s", camel_exception_get_description(ex)); pull(); diff --git a/camel/tests/folder/test8.c b/camel/tests/folder/test8.c index cf8a7ecc8a..c039af5eb0 100644 --- a/camel/tests/folder/test8.c +++ b/camel/tests/folder/test8.c @@ -1,5 +1,7 @@ /* threaded folder testing */ +#include <string.h> + #include "camel-test.h" #include "folders.h" #include "messages.h" @@ -54,7 +56,7 @@ test_add_message(CamelFolder *folder, int j) pull(); push("appending simple message %d", j); - camel_folder_append_message(folder, msg, NULL, &ex); + camel_folder_append_message(folder, msg, NULL, NULL, &ex); check_msg(!camel_exception_is_set(&ex), "%s", camel_exception_get_description(&ex)); pull(); diff --git a/camel/tests/folder/test9.c b/camel/tests/folder/test9.c index 974c2c7793..87efb2246c 100644 --- a/camel/tests/folder/test9.c +++ b/camel/tests/folder/test9.c @@ -1,5 +1,7 @@ /* folder/index testing */ +#include <string.h> + #include "camel-test.h" #include "messages.h" #include "folders.h" |