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:
@ -28,4 +28,4 @@ test('test-mu-guile',
|
||||
'-DGUILE_LOAD_PATH="' + guile_load_path + '"',
|
||||
'-DGUILE_EXTENSIONS_PATH="' + guile_load_path + '"'
|
||||
],
|
||||
dependencies: [glib_dep, lib_mu_dep, lib_test_mu_common_dep]))
|
||||
dependencies: [glib_dep, lib_mu_dep]))
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "test-mu-common.hh"
|
||||
#include "utils/mu-test-utils.hh"
|
||||
#include <lib/mu-store.hh>
|
||||
#include <utils/mu-utils.hh>
|
||||
|
||||
@ -116,7 +116,7 @@ main(int argc, char* argv[])
|
||||
TempDir tempdir;
|
||||
test_dir = tempdir.path();
|
||||
|
||||
g_test_init(&argc, &argv, NULL);
|
||||
mu_test_init(&argc, &argv);
|
||||
|
||||
if (!set_en_us_utf8_locale())
|
||||
return 0; /* don't error out... */
|
||||
@ -125,12 +125,6 @@ main(int argc, char* argv[])
|
||||
g_test_add_func("/guile/message", test_mu_guile_messages);
|
||||
g_test_add_func("/guile/stats", test_mu_guile_stats);
|
||||
|
||||
g_log_set_handler(NULL,
|
||||
(GLogLevelFlags)(G_LOG_LEVEL_MASK | G_LOG_LEVEL_WARNING |
|
||||
G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION),
|
||||
(GLogFunc)black_hole,
|
||||
NULL);
|
||||
|
||||
rv = g_test_run();
|
||||
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user