From dea7f9b7d3fe36d398ade3f8e45ec4e31652dc48 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 22 May 2009 16:59:14 +0100 Subject: [PATCH] [test-conformance] we were calling clutter_init with un-initialized arguments This ensure we initialize shared_state->arg{c,v}_addr before calling clutter_init --- tests/conform/test-conform-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conform/test-conform-main.c b/tests/conform/test-conform-main.c index b6b211b87..b2aa07077 100644 --- a/tests/conform/test-conform-main.c +++ b/tests/conform/test-conform-main.c @@ -76,14 +76,14 @@ main (int argc, char **argv) g_test_bug_base ("http://bugzilla.openedhand.com/show_bug.cgi?id=%s"); - g_assert (clutter_init (shared_state->argc_addr, shared_state->argv_addr) - == CLUTTER_INIT_SUCCESS); - /* Initialise the state you need to share with everything. */ shared_state->argc_addr = &argc; shared_state->argv_addr = &argv; + g_assert (clutter_init (shared_state->argc_addr, shared_state->argv_addr) + == CLUTTER_INIT_SUCCESS); + TEST_CONFORM_SIMPLE ("/timeline", test_timeline); TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", test_timeline_interpolate); TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", test_timeline_rewind);