utils/test: don't assert on debug level messages

They come and go in GLib core for all sorts of purposes. Don't let that
break our tests.

(cherry picked from commit 3e8eef5389)
This commit is contained in:
Lubomir Rintel 2018-08-11 11:08:42 +02:00
parent 0550003ef0
commit 5810c46b11

View file

@ -573,8 +573,9 @@ __nmtst_init (int *argc, char ***argv, gboolean assert_logging, const char *log_
#endif
} else {
/* We were called not to set logging levels. This means, that the user
* expects to assert against (all) messages. Any uncought message is fatal. */
g_log_set_always_fatal (G_LOG_LEVEL_MASK);
* expects to assert against (all) messages.
* Any uncaught message on >debug level is fatal. */
g_log_set_always_fatal (G_LOG_LEVEL_MASK & ~G_LOG_LEVEL_DEBUG);
}
if ((!__nmtst_internal.assert_logging || (__nmtst_internal.assert_logging && __nmtst_internal.no_expect_message)) &&