update tests: avoid helgrind warning

Log to the black_hole or helgrind gets unhappy
This commit is contained in:
Dirk-Jan C. Binnema
2022-05-06 22:14:02 +03:00
parent ec500d3ed4
commit f83d1b3ed0
3 changed files with 19 additions and 2 deletions

View File

@ -84,6 +84,16 @@ try {
g_test_add_func("/query", test_query);
if (!g_test_verbose())
g_log_set_handler(
NULL,
(GLogLevelFlags)(G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL |
G_LOG_FLAG_RECURSION),
(GLogFunc)black_hole,
NULL);
return g_test_run();
} catch (const std::runtime_error& re) {