aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-28 21:04:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-28 21:04:29 +0800
commitfc6063eabdc9813aff0f8cb39d782f64b3c345d0 (patch)
treebe8316d4fa698c2f9cee344b3b47b6eceea10793
parenta01639020eab41b968f269aefecb2eb4662b812f (diff)
downloadgsoc2013-evolution-fc6063eabdc9813aff0f8cb39d782f64b3c345d0.tar.gz
gsoc2013-evolution-fc6063eabdc9813aff0f8cb39d782f64b3c345d0.tar.zst
gsoc2013-evolution-fc6063eabdc9813aff0f8cb39d782f64b3c345d0.zip
fix exposes a regression in mbox :-/
2002-08-28 Not Zed <NotZed@Ximian.com> * tests/folder/test8.c (test_add_message): Change message number to use hex, so its properly unique. (worker): Same here. svn path=/trunk/; revision=17891
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/tests/folder/test8.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 142bbdd734..a5d6f5b5c7 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2002-08-28 Not Zed <NotZed@Ximian.com>
+ * tests/folder/test8.c (test_add_message): Change message number
+ to use hex, so its properly unique.
+ (worker): Same here.
+
* tests/misc/utf7.c: some utf7/utf8 tests.
* providers/imap/camel-imap-utils.c (imap_mailbox_encode): Chagned
diff --git a/camel/tests/folder/test8.c b/camel/tests/folder/test8.c
index c039af5eb0..54fba4dc83 100644
--- a/camel/tests/folder/test8.c
+++ b/camel/tests/folder/test8.c
@@ -47,11 +47,11 @@ test_add_message(CamelFolder *folder, int j)
push("creating message %d\n", j);
msg = test_message_create_simple();
- content = g_strdup_printf("Test message %d contents\n\n", j);
+ content = g_strdup_printf("Test message %08x contents\n\n", j);
test_message_set_content_simple((CamelMimePart *)msg, 0, "text/plain",
content, strlen(content));
test_free(content);
- subject = g_strdup_printf("Test message %d subject", j);
+ subject = g_strdup_printf("Test message %08x subject", j);
camel_mime_message_set_subject(msg, subject);
pull();
@@ -84,7 +84,7 @@ worker(void *d)
d(printf("Thread %ld message %i\n", pthread_self(), i));
test_add_message(info->folder, id+i);
- sub = g_strdup_printf("(match-all (header-contains \"subject\" \"message %d subject\"))", id+i);
+ sub = g_strdup_printf("(match-all (header-contains \"subject\" \"message %08x subject\"))", id+i);
push("searching for message %d\n\tusing: %s", id+i, sub);
res = camel_folder_search_by_expression(info->folder, sub, ex);
@@ -97,8 +97,8 @@ worker(void *d)
check_msg(!camel_exception_is_set(ex), "%s", camel_exception_get_description(ex));
pull();
- push("comparing content");
- content = g_strdup_printf("Test message %d contents\n\n", id+i);
+ content = g_strdup_printf("Test message %08x contents\n\n", id+i);
+ push("comparing content '%s': '%s'", res->pdata[0], content);
test_message_compare_content(camel_medium_get_content_object((CamelMedium *)msg), content, strlen(content));
test_free(content);
pull();