~ubuntu-branches/ubuntu/saucy/evolution-data-server/saucy

« back to all changes in this revision

Viewing changes to camel/tests/folder/test8.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2012-10-08 12:58:16 UTC
  • mfrom: (181.1.7 quantal)
  • Revision ID: package-import@ubuntu.com-20121008125816-i3n76e8c0m64e7xp
Tags: 3.6.0-0ubuntu2
* Fix LP: #1038047 part 1 - Don't abort in e_source_registry_new* when a
  problem occurs connecting to the Dbus service
  - add debian/patches/dont-abort-in-e_source_registry_new.patch
  - update debian/patches/series
* Fix LP: #1038047 part 2 - libedataserver depends on
  evolution-data-server-common to ensure that the GSettings schemas are
  present
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        push ("creating message %d\n", j);
32
32
        msg = test_message_create_simple ();
33
33
        content = g_strdup_printf ("Test message %08x contents\n\n", j);
34
 
        test_message_set_content_simple ((CamelMimePart *)msg, 0, "text/plain",
 
34
        test_message_set_content_simple (
 
35
                (CamelMimePart *) msg, 0, "text/plain",
35
36
                                                        content, strlen (content));
36
37
        test_free (content);
37
38
        subject = g_strdup_printf ("Test message %08x subject", j);
68
69
        for (i = 0; i < MAX_MESSAGES; i++) {
69
70
                test_add_message (info->folder, id + i);
70
71
 
71
 
                sub = g_strdup_printf ("(match-all (header-contains \"subject\" \"message %08x subject\"))", id+i);
 
72
                sub = g_strdup_printf ("(match-all (header-contains \"subject\" \"message %08x subject\"))", id + i);
72
73
 
73
 
                push ("searching for message %d\n\tusing: %s", id+i, sub);
 
74
                push ("searching for message %d\n\tusing: %s", id + i, sub);
74
75
                res = camel_folder_search_by_expression (info->folder, sub, NULL, &error);
75
76
                check_msg (error == NULL, "%s", error->message);
76
77
                check_msg (res->len == 1, "res->len = %d", res->len);
84
85
                g_clear_error (&error);
85
86
                pull ();
86
87
 
87
 
                content = g_strdup_printf ("Test message %08x contents\n\n", id+i);
 
88
                content = g_strdup_printf ("Test message %08x contents\n\n", id + i);
88
89
                push ("comparing content '%s': '%s'", res->pdata[0], content);
89
90
                test_message_compare_content (camel_medium_get_content ((CamelMedium *) msg), content, strlen (content));
90
91
                test_free (content);