[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
This commit is contained in:
Robert Bragg 2009-05-22 16:59:14 +01:00
parent 6b92296e7f
commit dea7f9b7d3

View 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);