diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2022-08-10 08:20:58 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2022-08-15 23:18:18 +0300 |
| commit | 11389247c532bf3564ea89ea3264f707d1340dd2 (patch) | |
| tree | fc686b483a9c75785af2b82fa06b6b5f54b4eeed /mu/tests/test-mu-query.cc | |
| parent | 3ba2c4ea08b5f9631556718c1f9b59d5213ea15b (diff) | |
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.
Diffstat (limited to 'mu/tests/test-mu-query.cc')
| -rw-r--r-- | mu/tests/test-mu-query.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/mu/tests/test-mu-query.cc b/mu/tests/test-mu-query.cc index ca2b73a..283f2e9 100644 --- a/mu/tests/test-mu-query.cc +++ b/mu/tests/test-mu-query.cc @@ -30,7 +30,7 @@ #include <string.h> #include <locale.h> -#include "test-mu-common.hh" +#include "utils/mu-test-utils.hh" #include "mu-query.hh" #include "utils/mu-result.hh" #include "utils/mu-utils.hh" @@ -625,7 +625,7 @@ main(int argc, char* argv[]) setlocale(LC_ALL, ""); - g_test_init(&argc, &argv, nullptr); + mu_test_init(&argc, &argv); DB_PATH1 = make_database(MU_TESTMAILDIR); g_assert_false(DB_PATH1.empty()); @@ -668,13 +668,6 @@ main(int argc, char* argv[]) g_test_add_func("/mu-query/test-mu-query-cjk", test_mu_query_cjk); - - if (!g_test_verbose()) - g_log_set_handler(NULL, - (GLogLevelFlags)(G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | - G_LOG_LEVEL_WARNING | G_LOG_FLAG_RECURSION), - (GLogFunc)black_hole, - NULL); rv = g_test_run(); return rv; |
