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 3ba2c4ea08
commit 11389247c5
33 changed files with 355 additions and 406 deletions

View File

@ -122,6 +122,8 @@ Mu::flags_from_path(const std::string& path)
#ifdef BUILD_TESTS
#include "utils/mu-test-utils.hh"
static void
test_maildir_from_path()
{
@ -192,7 +194,7 @@ test_flags_from_path()
int
main(int argc, char* argv[])
{
g_test_init(&argc, &argv, NULL);
mu_test_init(&argc, &argv);
g_test_add_func("/message/file/maildir-from-path",
test_maildir_from_path);