From c043544228c1d3bd4d6db5b18502d575bcab59bc Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Thu, 19 Nov 2020 15:16:16 +0000
Subject: [PATCH] tests: Improve debuggability

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/graphics.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/graphics.c b/tests/graphics.c
index 2eb4b280f..58fd48238 100644
--- a/tests/graphics.c
+++ b/tests/graphics.c
@@ -1577,8 +1577,13 @@ check_list_suffixes (const GList *list,
                      SrtGraphicsModule module)
 {
   const gchar *value = NULL;
-  gsize i = 0;
-  for (const GList *iter = list; iter != NULL; iter = iter->next, i++)
+  const GList *iter;
+  gsize i;
+
+  for (i = 0; suffixes[i] != NULL; i++)
+    g_test_message ("Expecting: %s", suffixes[i]);
+
+  for (iter = list, i = 0; iter != NULL; iter = iter->next, i++)
     {
       switch (module)
         {
@@ -1599,6 +1604,7 @@ check_list_suffixes (const GList *list,
           default:
             g_return_if_reached ();
         }
+      g_test_message ("Got: %s", value);
       g_assert_nonnull (suffixes[i]);
       g_assert_true (g_str_has_suffix (value, suffixes[i]));
     }
-- 
GitLab