* update tests for GError-changes

This commit is contained in:
Dirk-Jan C. Binnema 2010-11-25 21:49:44 +02:00
parent e22149fa46
commit dfeb0f7736
2 changed files with 9 additions and 6 deletions

View File

@ -66,7 +66,8 @@ test_mu_msg_01 (void)
gint i;
msg = mu_msg_new (MU_TESTMAILDIR
"cur/1220863042.12663_1.mindcrime!2,S", NULL);
"cur/1220863042.12663_1.mindcrime!2,S",
NULL, NULL);
g_assert_cmpstr (mu_msg_get_to(msg),
==, "Donald Duck <gcc-help@gcc.gnu.org>");
@ -127,8 +128,9 @@ test_mu_msg_02 (void)
int i;
msg = mu_msg_new (MU_TESTMAILDIR
"cur/1220863087.12663_19.mindcrime!2,S", NULL);
"cur/1220863087.12663_19.mindcrime!2,S",
NULL, NULL);
g_assert_cmpstr (mu_msg_get_to(msg),
==, "help-gnu-emacs@gnu.org");
g_assert_cmpstr (mu_msg_get_subject(msg),
@ -162,7 +164,8 @@ test_mu_msg_03 (void)
MuMsg *msg;
msg = mu_msg_new (MU_TESTMAILDIR
"cur/1283599333.1840_11.cthulhu!2,", NULL);
"cur/1283599333.1840_11.cthulhu!2,",
NULL, NULL);
g_assert_cmpstr (mu_msg_get_to(msg),
==, "Bilbo Baggins <bilbo@anotherexample.com>");
@ -192,7 +195,7 @@ test_mu_msg_04 (void)
MuMsg *msg;
msg = mu_msg_new (MU_TESTMAILDIR2
"Foo/cur/mail4", NULL);
"Foo/cur/mail4", NULL, NULL);
g_assert_cmpstr (mu_msg_get_to(msg),
==, "George Custer <gac@example.com>");

View File

@ -216,7 +216,7 @@ test_mu_query_05 (void)
query = mu_query_new (xpath, NULL);
iter = mu_query_run (query, "fünkÿ", MU_MSG_FIELD_ID_NONE,
FALSE, 1, NULL);
msg = mu_msg_iter_get_msg (iter);
msg = mu_msg_iter_get_msg (iter, NULL);
g_assert_cmpstr (mu_msg_get_subject(msg),==,
"Greetings from Lothlórien");