From: thiery Date: Tue, 25 Jan 2011 10:39:29 +0000 (+0000) Subject: Fix test lua-msg-masterslave-console (was broken since r9407) X-Git-Tag: v3.6_beta2~444 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5e6f9c25cfcb9a1418c0fc4a613fde7f66932a07 Fix test lua-msg-masterslave-console (was broken since r9407) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9485 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/bindings/lua/simgrid_lua.c b/src/bindings/lua/simgrid_lua.c index 744e24e19f..1f78abc781 100644 --- a/src/bindings/lua/simgrid_lua.c +++ b/src/bindings/lua/simgrid_lua.c @@ -618,6 +618,8 @@ static int msg_register_platform(lua_State * L) { /* Tell Simgrid we dont wanna use its parser */ surf_parse = console_parse_platform; + surf_parse_reset_callbacks(); + surf_config_models_setup(NULL); MSG_create_environment(NULL); return 0; } @@ -629,6 +631,8 @@ static int msg_register_platform(lua_State * L) static int sd_register_platform(lua_State * L) { surf_parse = console_parse_platform_wsL07; + surf_parse_reset_callbacks(); + surf_config_models_setup(NULL); SD_create_environment(NULL); return 0; } @@ -640,6 +644,8 @@ static int gras_register_platform(lua_State * L) { /* Tell Simgrid we dont wanna use surf parser */ surf_parse = console_parse_platform; + surf_parse_reset_callbacks(); + surf_config_models_setup(NULL); gras_create_environment(NULL); return 0; }