X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eff5a5ea699d8587e0ed992f0fe7db9ec7df2487..49637c6fbea1f5e16060fcceb844a637f50869ed:/teshsuite/msg/host_on_off_processes/host_on_off_processes.c diff --git a/teshsuite/msg/host_on_off_processes/host_on_off_processes.c b/teshsuite/msg/host_on_off_processes/host_on_off_processes.c index 740a95ceb7..0aa4cbfb77 100644 --- a/teshsuite/msg/host_on_off_processes/host_on_off_processes.c +++ b/teshsuite/msg/host_on_off_processes/host_on_off_processes.c @@ -217,12 +217,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 test_number\n" - "\tExample: %s msg_platform.xml msg_deployment.xml 1\n", argv[0], argv[0]); + xbt_assert(argc == 3,"Usage: %s platform_file test_number\n\tExample: %s msg_platform.xml 1\n", argv[0], argv[0]); unsigned int iter; char *groups; - xbt_dynar_t s_tests = xbt_str_split(argv[3], ","); + xbt_dynar_t s_tests = xbt_str_split(argv[2], ","); int tmp_test = 0; tests = xbt_dynar_new(sizeof(int), NULL); xbt_dynar_foreach(s_tests, iter, groups) { @@ -233,11 +232,7 @@ int main(int argc, char *argv[]) MSG_create_environment(argv[1]); - MSG_function_register("test_launcher", test_launcher); - MSG_function_register("process_daemon", process_daemon); - MSG_function_register("process_sleep", process_sleep); - - MSG_launch_application(argv[2]); + MSG_process_create("test_launcher", test_launcher, NULL, MSG_get_host_by_name("Tremblay")); res = MSG_main();