From 4cc470185167ab4f0f5cfd9738cde57ed08472e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 8 Nov 2020 22:22:34 +0100 Subject: [PATCH] tests/stage-view: Tweak test to make less racy It'd happen that the test runner would get CPU starved, and not see the frame-clock changed notification before the timeline stopped. Decrease the risk for this by moving the initial position of the actor having its position transitioned to be closer to the view edge. This means the frame clock will be changed earlier, increasing the chance of the timeline not stopping before the relayout happens. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1555 --- src/tests/stage-view-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/stage-view-tests.c b/src/tests/stage-view-tests.c index 163d677ac..263a4b2d0 100644 --- a/src/tests/stage-view-tests.c +++ b/src/tests/stage-view-tests.c @@ -774,7 +774,7 @@ meta_test_actor_stage_views_timeline (void) actor = clutter_actor_new (); clutter_actor_set_size (actor, 100, 100); - clutter_actor_set_position (actor, 100, 100); + clutter_actor_set_position (actor, 800, 100); clutter_actor_add_child (stage, actor); clutter_actor_show (stage);