[mutter] tests/stage-view: Tweak test to make less racy
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/stage-view: Tweak test to make less racy
- Date: Mon, 9 Nov 2020 16:23:50 +0000 (UTC)
commit 4cc470185167ab4f0f5cfd9738cde57ed08472e5
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Sun Nov 8 22:22:34 2020 +0100
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 163d677ac8..263a4b2d04 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]