[gimp] app/tests: Fix sporadic '/gimp-ui/repeatedly_switch_window_mode' failure



commit 6c880859ea1562b2de55cdf287625ae2c3a8fe6c
Author: Martin Nordholts <martinn src gnome org>
Date:   Sun Jul 3 11:24:29 2011 +0200

    app/tests: Fix sporadic '/gimp-ui/repeatedly_switch_window_mode' failure

 app/tests/test-ui.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/tests/test-ui.c b/app/tests/test-ui.c
index 864f322..a76f5a4 100644
--- a/app/tests/test-ui.c
+++ b/app/tests/test-ui.c
@@ -868,6 +868,10 @@ gimp_ui_switch_window_mode (Gimp *gimp)
                                    "windows",
                                    "windows-use-single-window-mode");
   gimp_test_run_mainloop_until_idle ();
+
+  /* Add a small sleep to let things stabilize */
+  g_usleep (500 * 1000);
+  gimp_test_run_mainloop_until_idle ();
 }
 
 int main(int argc, char **argv)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]