]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/msg/process_join/process_join.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't fool sonar if we can avoid it
[simgrid.git] / teshsuite / msg / process_join / process_join.c
index 87f5245cd4a1e6a8d31c22f5e066b81363c1ad22..67cb1ad4e0aa0755fd2c20bb782d703c60b82274 100644 (file)
@@ -48,14 +48,11 @@ int main(int argc, char *argv[])
   msg_error_t res;
 
   MSG_init(&argc, argv);
-  xbt_assert(argc == 3, "Usage: %s platform_file deployment_file\n"
-             "\tExample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]);
+  xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
 
   MSG_create_environment(argv[1]);
 
-  MSG_function_register("master", master);
-  MSG_function_register("slave", slave);
-  MSG_launch_application(argv[2]);
+  MSG_process_create("master", master, NULL, MSG_get_host_by_name("Tremblay"));
 
   res = MSG_main();