From 5235f2b4ac2968e94fb0f3fc4ef2a1aa6013a342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 23 Jan 2023 23:25:16 +0100 Subject: [PATCH] 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: --- src/tests/color-management-tests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/color-management-tests.c b/src/tests/color-management-tests.c index 932bb5908..a31a8355d 100644 --- a/src/tests/color-management-tests.c +++ b/src/tests/color-management-tests.c @@ -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