tests/color: Assert we saw the expected messages
g_test_expect_message() needs a g_test_assert_expected_messages() to be of much use, so add those calls too. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2800>
This commit is contained in:
parent
11d35f99be
commit
5235f2b4ac
@ -628,6 +628,7 @@ meta_test_color_management_profile_device_bogus (void)
|
|||||||
while (!meta_color_device_is_ready (color_device))
|
while (!meta_color_device_is_ready (color_device))
|
||||||
g_main_context_iteration (NULL, TRUE);
|
g_main_context_iteration (NULL, TRUE);
|
||||||
|
|
||||||
|
g_test_assert_expected_messages ();
|
||||||
color_profile = meta_color_device_get_device_profile (color_device);
|
color_profile = meta_color_device_get_device_profile (color_device);
|
||||||
g_assert_null (color_profile);
|
g_assert_null (color_profile);
|
||||||
|
|
||||||
@ -653,6 +654,7 @@ meta_test_color_management_profile_device_bogus (void)
|
|||||||
|
|
||||||
color_profile = meta_color_device_get_device_profile (color_device);
|
color_profile = meta_color_device_get_device_profile (color_device);
|
||||||
g_assert_null (color_profile);
|
g_assert_null (color_profile);
|
||||||
|
g_test_assert_expected_messages ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user