From 175317a75481b9d3e228258d86e17dfd12263551 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Wed, 7 Jul 2010 15:58:02 +0100 Subject: [PATCH] test-timeline: instantiate a stage so the master clock runs This makes test-timeline get the default stage so there is at least one stage instantiated. Without any stages the master clock will never run which was causing this test to fail. --- tests/conform/test-timeline.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/conform/test-timeline.c b/tests/conform/test-timeline.c index 6a927cb50..571d62716 100644 --- a/tests/conform/test-timeline.c +++ b/tests/conform/test-timeline.c @@ -185,6 +185,7 @@ void test_timeline (TestConformSimpleFixture *fixture, gconstpointer data) { + ClutterActor *stage; ClutterTimeline *timeline_1; TimelineData data_1; ClutterTimeline *timeline_2; @@ -195,6 +196,10 @@ test_timeline (TestConformSimpleFixture *fixture, gsize n_markers; guint delay_tag; + /* NB: We have to ensure a stage is instantiated else the master + * clock wont run... */ + stage = clutter_stage_get_default (); + timeline_data_init (&data_1, 1); timeline_1 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS); clutter_timeline_add_marker_at_time (timeline_1, "start-marker",