* <many>: make gmime initialization/de-initialization implicit (remove mu_msg_init/mu_msg_uninit)
This commit is contained in:
@ -84,7 +84,6 @@ test_mu_msg_01 (void)
|
||||
MuMsg *msg;
|
||||
gint i;
|
||||
|
||||
mu_msg_init ();
|
||||
mfile = get_mailpath (1);
|
||||
|
||||
msg = mu_msg_new (mfile, NULL);
|
||||
@ -113,7 +112,6 @@ test_mu_msg_01 (void)
|
||||
mu_msg_destroy (msg);
|
||||
|
||||
g_free (mfile);
|
||||
mu_msg_uninit ();
|
||||
}
|
||||
|
||||
|
||||
@ -150,8 +148,7 @@ test_mu_msg_02 (void)
|
||||
char *mfile;
|
||||
MuMsg *msg;
|
||||
int i;
|
||||
|
||||
mu_msg_init ();
|
||||
|
||||
mfile = get_mailpath (2);
|
||||
|
||||
msg = mu_msg_new (mfile, NULL);
|
||||
@ -179,7 +176,6 @@ test_mu_msg_02 (void)
|
||||
mu_msg_destroy (msg);
|
||||
|
||||
g_free (mfile);
|
||||
mu_msg_uninit ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -159,8 +159,6 @@ test_mu_query_04 (void)
|
||||
|
||||
query = mu_query_new (xpath);
|
||||
iter = mu_query_run (query, "fünkÿ", NULL, FALSE, 1);
|
||||
|
||||
mu_msg_init ();
|
||||
msg = mu_msg_iter_get_msg (iter);
|
||||
|
||||
g_assert_cmpstr (mu_msg_get_subject(msg),==,
|
||||
@ -169,8 +167,6 @@ test_mu_query_04 (void)
|
||||
" Let's write some fünkÿ text using umlauts. ");
|
||||
|
||||
mu_msg_destroy (msg);
|
||||
mu_msg_uninit ();
|
||||
|
||||
mu_msg_iter_destroy (iter);
|
||||
mu_query_destroy (query);
|
||||
g_free (xpath);
|
||||
|
||||
Reference in New Issue
Block a user