aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test10.c16
-rw-r--r--tests/test2.c5
2 files changed, 11 insertions, 10 deletions
diff --git a/tests/test10.c b/tests/test10.c
index b223efb8ef..fc8cc326cf 100644
--- a/tests/test10.c
+++ b/tests/test10.c
@@ -105,17 +105,15 @@ main (int argc, char**argv)
"Full description : %s\n", camel_exception_get_description (ex));
return -1;
}
-
+
uid_list = camel_folder_get_uid_list (folder, ex);
- while (uid_list) {
- printf ("UID : %s\n", (gchar *)uid_list->data);
- uid_list = uid_list->next;
- }
-
- camel_folder_close (folder, FALSE, ex);
-
+
+
+ camel_folder_get_message_by_uid (folder, (gchar *)uid_list->data, ex);
+ camel_folder_close (folder, FALSE, ex);
return 1;
-}
+}
+
diff --git a/tests/test2.c b/tests/test2.c
index 20e8b739b9..99dc74d655 100644
--- a/tests/test2.c
+++ b/tests/test2.c
@@ -19,6 +19,7 @@ main (int argc, char**argv)
gtk_init (&argc, &argv);
camel_init ();
camel_debug_level = CAMEL_LOG_LEVEL_FULL_DEBUG;
+
message = camel_mime_message_new_with_session( (CamelSession *)NULL);
@@ -30,6 +31,8 @@ main (int argc, char**argv)
}
camel_data_wrapper_construct_from_stream ( CAMEL_DATA_WRAPPER (message), input_stream);
+
+ camel_debug_level = CAMEL_LOG_LEVEL_FULL_DEBUG;
camel_medium_get_content_object (CAMEL_MEDIUM (message));
camel_stream_close (input_stream);
gtk_object_unref (GTK_OBJECT (input_stream));
@@ -39,7 +42,7 @@ main (int argc, char**argv)
camel_stream_close (output_stream);
gtk_object_unref (GTK_OBJECT (output_stream));
- gtk_object_unref (GTK_OBJECT (message));
+ //gtk_object_unref (GTK_OBJECT (message));
return 0;