[mutter/gnome-3-32] test-runner: Always wait after creating a window



commit fb03e198e5dc7f45a9c0f9189f0440767fc87b78
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri May 17 21:11:04 2019 +0000

    test-runner: Always wait after creating a window
    
    Creating a window could take some time, causing false-positive failures when
    running in slower or busy hardware like:
    
      window 1/2 isn't known to Mutter
    
    So before we proceed in doing any operation on it, wait for the client.
    Do this in the test runner instead of repeating the same in every .metatest.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/581
    
    
    (cherry picked from commit c1059df7f98212c0617fb100839587d7e23f2e3b)

 src/tests/test-runner.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/tests/test-runner.c b/src/tests/test-runner.c
index f90d9f928..aa95b3bc8 100644
--- a/src/tests/test-runner.c
+++ b/src/tests/test-runner.c
@@ -385,6 +385,9 @@ test_case_do (TestCase *test,
                            argc == 3 ? argv[2] : NULL,
                            NULL))
         return FALSE;
+
+      if (!test_client_wait (client, error))
+        return FALSE;
     }
   else if (strcmp (argv[0], "set_parent") == 0 ||
            strcmp (argv[0], "set_parent_exported") == 0)


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