mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 18:04:09 +00:00
[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:
parent
6b92296e7f
commit
dea7f9b7d3
@ -76,14 +76,14 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
g_test_bug_base ("http://bugzilla.openedhand.com/show_bug.cgi?id=%s");
|
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.
|
/* Initialise the state you need to share with everything.
|
||||||
*/
|
*/
|
||||||
shared_state->argc_addr = &argc;
|
shared_state->argc_addr = &argc;
|
||||||
shared_state->argv_addr = &argv;
|
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_SIMPLE ("/timeline", test_timeline);
|
||||||
TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", test_timeline_interpolate);
|
TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", test_timeline_interpolate);
|
||||||
TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", test_timeline_rewind);
|
TEST_CONFORM_SKIP (!g_test_slow (), "/timeline", test_timeline_rewind);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user