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

« back to all changes in this revision

Viewing changes to camel/tests/misc/test2.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:
69
69
 
70
70
        camel_test_init (argc, argv);
71
71
 
72
 
        camel_test_start("Param list decoding");
 
72
        camel_test_start ("Param list decoding");
73
73
 
74
74
        for (i = 0; i < G_N_ELEMENTS (test1); i++) {
75
75
                struct _camel_header_param *head, *node;
76
76
 
77
 
                camel_test_push("param decoding[%d] '%s'", i, test1[i].list);
 
77
                camel_test_push ("param decoding[%d] '%s'", i, test1[i].list);
78
78
                head = camel_header_param_list_decode (test1[i].list);
79
79
                check (head != NULL);
80
80
                node = head;
81
81
                for (j = 0; j < test1[i].count; j++) {
82
 
                        check_msg(node != NULL, "didn't find all params");
 
82
                        check_msg (node != NULL, "didn't find all params");
83
83
                        check (strcmp (node->name, test1[i].params[j * 2]) == 0);
84
84
                        check (strcmp (node->value, test1[i].params[j * 2 + 1]) == 0);
85
85
                        node = node->next;
86
86
                }
87
 
                check_msg(node == NULL, "found more params than should have");
 
87
                check_msg (node == NULL, "found more params than should have");
88
88
                camel_header_param_list_free (head);
89
89
                camel_test_pull ();
90
90
        }
91
91
 
92
92
        camel_test_end ();
93
93
 
94
 
        camel_test_start("Param list encoding");
 
94
        camel_test_start ("Param list encoding");
95
95
 
96
96
        for (i = 0; i < G_N_ELEMENTS (test2); i++) {
97
97
                struct _camel_header_param *head = NULL, *scan;
98
98
                gchar *text;
99
99
 
100
 
                camel_test_push("param encoding[%d]", i);
 
100
                camel_test_push ("param encoding[%d]", i);
101
101
 
102
102
                for (j = 0; j < test2[i].count; j++)
103
103
                        camel_header_set_param (&head, test2[i].params[j * 2], test2[i].params[j * 2 + 1]);