testsuite: rename 'wait' function to 'timed_loop'
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 26 May 2023 15:46:08 +0000 (17:46 +0200)
committerLuca Bacci <luca.bacci982@gmail.com>
Mon, 29 May 2023 14:43:28 +0000 (16:43 +0200)
When compiling for macOS, CLang errors out because a non-static
wait function is declared in sys/wait.h.

testsuite/gtk/test-focus-chain.c

index c89e276126beece3745cc133d15869918d325698..e58912ae0db8cccf4245c1624b2417912f218362 100644 (file)
@@ -78,7 +78,7 @@ quit_iteration_loop (gpointer user_data)
 }
 
 static void
-wait (guint millis)
+timed_loop (guint millis)
 {
   gboolean keep_running = TRUE;
 
@@ -145,7 +145,7 @@ generate_focus_chain (GtkWidget        *window,
         }
 
       g_string_append_printf (output, "%s\n", name);
-      wait (100);
+      timed_loop (100);
       count++;
 
       if (!first)