aboutsummaryrefslogtreecommitdiffstats
path: root/camel/tests/folder
diff options
context:
space:
mode:
Diffstat (limited to 'camel/tests/folder')
-rw-r--r--camel/tests/folder/Makefile.am1
-rw-r--r--camel/tests/folder/test1.c2
-rw-r--r--camel/tests/folder/test2.c10
-rw-r--r--camel/tests/folder/test4.c2
-rw-r--r--camel/tests/folder/test5.c2
5 files changed, 13 insertions, 4 deletions
diff --git a/camel/tests/folder/Makefile.am b/camel/tests/folder/Makefile.am
index f6dd852dd8..1b3e3338ec 100644
--- a/camel/tests/folder/Makefile.am
+++ b/camel/tests/folder/Makefile.am
@@ -8,6 +8,7 @@ LDADD = \
$(top_builddir)/camel/libcamel.la \
$(top_builddir)/e-util/libeutil.la \
$(top_builddir)/libibex/libibex.la \
+ $(DB3_LDADD) \
$(GNOME_LIBDIR) \
$(top_builddir)/camel/tests/lib/libcameltest.a \
$(GNOMEUI_LIBS) $(INTLLIBS) $(EXTRA_GNOME_LIBS)
diff --git a/camel/tests/folder/test1.c b/camel/tests/folder/test1.c
index 4d589099f5..c1d3809852 100644
--- a/camel/tests/folder/test1.c
+++ b/camel/tests/folder/test1.c
@@ -38,7 +38,7 @@ int main(int argc, char **argv)
for (i=0;i<ARRAY_LEN(local_providers);i++) {
path = g_strdup_printf("%s:///tmp/camel-test/%s", local_providers[i], local_providers[i]);
- test_folder_basic(session, path, TRUE);
+ test_folder_basic(session, path, TRUE, FALSE);
g_free(path);
}
diff --git a/camel/tests/folder/test2.c b/camel/tests/folder/test2.c
index 0fafce35be..9ea0efabbb 100644
--- a/camel/tests/folder/test2.c
+++ b/camel/tests/folder/test2.c
@@ -1,5 +1,9 @@
/* folder testing */
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
#include "camel-test.h"
#include "messages.h"
#include "folders.h"
@@ -40,9 +44,13 @@ int main(int argc, char **argv)
for (i=0;i<ARRAY_LEN(stores);i++) {
char *name = stores[i];
- test_folder_message_ops(session, name, TRUE);
+ test_folder_message_ops(session, name, TRUE, FALSE);
}
+ /* create a pseudo-spool file, and check that */
+ creat("/tmp/camel-test/testbox", 0600);
+ test_folder_message_ops(session, "spool:///tmp/camel-test", FALSE, TRUE);
+
check_unref(session, 1);
camel_exception_free(ex);
diff --git a/camel/tests/folder/test4.c b/camel/tests/folder/test4.c
index f6d766f2ac..eb0bd3420b 100644
--- a/camel/tests/folder/test4.c
+++ b/camel/tests/folder/test4.c
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
_exit(77);
}
camel_test_nonfatal("The IMAP code is just rooted");
- test_folder_basic(session, path, FALSE);
+ test_folder_basic(session, path, FALSE, FALSE);
camel_test_fatal();
}
diff --git a/camel/tests/folder/test5.c b/camel/tests/folder/test5.c
index 20e0c7d011..ccdfb23b23 100644
--- a/camel/tests/folder/test5.c
+++ b/camel/tests/folder/test5.c
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
_exit(77);
}
camel_test_nonfatal("Not sure how many tests apply to NNTP");
- test_folder_basic(session, path, FALSE);
+ test_folder_basic(session, path, FALSE, FALSE);
camel_test_fatal();
}