Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get rid of some useless deployment files
[simgrid.git] / teshsuite / msg / process / process.c
index e29a615..57a7fdb 100644 (file)
@@ -58,15 +58,12 @@ 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"
-             "\n Example: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]);
+  xbt_assert(argc == 2, "Usage: %s platform_file\n\t Example: %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"));
+  MSG_process_create("slave", slave, NULL, MSG_get_host_by_name("Tremblay"));
 
   res = MSG_main();