Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix this untested example
[simgrid.git] / examples / msg / exception / exception.c
index 77e3406..e505e75 100644 (file)
@@ -108,12 +108,10 @@ int main(int argc, char *argv[]) {
   msg_error_t res = MSG_OK;
 
   MSG_init(&argc, argv);
-  xbt_assert(argc > 2, "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_function_register("terrorist", terrorist);
   MSG_create_environment(argv[1]);
-  MSG_launch_application(argv[2]);
+  MSG_process_create("terrorist", terrorist, NULL, MSG_get_host_by_name("Jacquelin"));
 
   // Launch the simulation
   res = MSG_main();