diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 4 | ||||
-rw-r--r-- | camel/tests/folder/test8.c | 10 |
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(); |