[test-conformance] we were calling clutter_init with un-initialized arguments
authorRobert Bragg <robert@linux.intel.com>
Fri, 22 May 2009 15:59:14 +0000 (16:59 +0100)
committerRobert Bragg <robert@linux.intel.com>
Fri, 5 Jun 2009 16:18:32 +0000 (17:18 +0100)
This ensure we initialize shared_state->arg{c,v}_addr before calling
clutter_init

tests/conform/test-conform-main.c

index b6b211b..b2aa070 100644 (file)
@@ -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);