mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 11:30:12 +01:00
tests: handle no_expect_message also for tests without assert-logging
This commit is contained in:
parent
d5ef08e01e
commit
88a2f1c93b
1 changed files with 2 additions and 0 deletions
|
|
@ -400,6 +400,8 @@ __nmtst_init (int *argc, char ***argv, gboolean assert_logging, const char *log_
|
|||
*out_set_logging = TRUE;
|
||||
#endif
|
||||
g_assert (success);
|
||||
if (__nmtst_internal.no_expect_message)
|
||||
g_log_set_always_fatal (G_LOG_FATAL_MASK);
|
||||
} else if (__nmtst_internal.no_expect_message) {
|
||||
/* We have a test that would be assert_logging, but the user specified no_expect_message.
|
||||
* This transforms g_test_expect_message() into a NOP, but we also have to relax
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue