tests: update test helpers and users

Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for
g_test_init. Update users.
This commit is contained in:
Dirk-Jan C. Binnema
2022-08-10 08:20:58 +03:00
parent 84cd6942c4
commit 317fe53ff7
33 changed files with 355 additions and 406 deletions

View File

@ -80,7 +80,7 @@ Mu::lowercase_hash(const std::string& s)
*
*/
#include "utils/mu-utils.hh"
#include "utils/mu-test-utils.hh"
static void
test_ctor_foo()
@ -189,14 +189,13 @@ static void
test_misc()
{
g_assert_false(!!contact_type_from_field_id(Field::Id::Subject));
}
int
main(int argc, char* argv[])
{
g_test_init(&argc, &argv, NULL);
mu_test_init(&argc, &argv);
g_mime_init();
g_test_add_func("/message/contact/ctor-foo", test_ctor_foo);