X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/31cdbb05b8e60a3d47d1d688e1a35cd457a6f407..c5b6984a0236437d46945ee28731a6a072f6a2fb:/examples/msg/msg_test.c diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index 985baa8207..388e0878ec 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -93,6 +93,9 @@ int master(int argc, char *argv[]) INFO2("Sending \"%s\" to \"%s\"", todo[i]->name, slaves[i % slaves_count]->name); + if(MSG_host_self()==slaves[i % slaves_count]) { + INFO0("Hey ! It's me ! :)"); + } MSG_task_put(todo[i], slaves[i % slaves_count], PORT_22); INFO0("Send completed"); @@ -176,6 +179,8 @@ int forwarder(int argc, char *argv[]) /** Test function */ void test_all(const char *platform_file,const char *application_file) { + + /* MSG_config("surf_workstation_model","KCCFLN05"); */ { /* Simulation setting */ MSG_set_channel_number(MAX_CHANNEL); MSG_paje_output("msg_test.trace"); @@ -196,7 +201,7 @@ void test_all(const char *platform_file,const char *application_file) /** Main function */ int main(int argc, char *argv[]) { - MSG_global_init_args(&argc,argv); + MSG_global_init(&argc,argv); if (argc < 3) { printf ("Usage: %s platform_file deployment_file\n",argv[0]); printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);