mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-26 21:50:44 +02:00
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:
parent
0550003ef0
commit
5810c46b11
1 changed files with 3 additions and 2 deletions
|
|
@ -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)) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue