testsuite: Print update after changes, not before
authorBenjamin Otte <otte@redhat.com>
Sat, 10 Jun 2023 18:20:10 +0000 (20:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 10 Jun 2023 18:25:20 +0000 (20:25 +0200)
This way, we don't do an empty print at the start and don't miss a print
at the end.

testsuite/gtk/listitemmanager.c

index 0d74e8c9950ece28e3ad53ec7e02a63f978f09db..e11e3f85e0d94102222aec738cabc5e956a07feb 100644 (file)
@@ -433,9 +433,6 @@ test_exhaustive (void)
       gboolean add = FALSE, remove = FALSE;
       guint position, n_items;
 
-      if (g_test_verbose ())
-        print_list_item_manager_tiles (items);
-
       switch (g_test_rand_int_range (0, 6))
       {
         case 0:
@@ -509,6 +506,9 @@ test_exhaustive (void)
         {
           g_list_store_remove (store, position);
         }
+
+      if (g_test_verbose ())
+        print_list_item_manager_tiles (items);
     }
 
   check_list_item_manager (items, widget, trackers, N_TRACKERS);