1
0
Fork 0

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:
Jonas Ådahl 2023-01-23 23:25:16 +01:00 committed by Marge Bot
parent 11d35f99be
commit 5235f2b4ac

View file

@ -628,6 +628,7 @@ meta_test_color_management_profile_device_bogus (void)
while (!meta_color_device_is_ready (color_device))
g_main_context_iteration (NULL, TRUE);
g_test_assert_expected_messages ();
color_profile = meta_color_device_get_device_profile (color_device);
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);
g_assert_null (color_profile);
g_test_assert_expected_messages ();
}
static void