X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9932a0c0d2c44e34633c97a827b2b04d615cb4e9..b3b356352e87ae00a20f737c48e19b0c8413455a:/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 959bf5ec6a..b2eb287377 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 @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2014. The SimGrid Team. +/* Copyright (c) 2010-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -28,7 +28,7 @@ int test_launcher(int argc, char *argv[]) char **argvF; argvF = xbt_new(char*, 2); argvF[0] = xbt_strdup("process_daemon"); - msg_host_t jupiter = MSG_get_host_by_name("Jupiter"); + msg_host_t jupiter = MSG_host_by_name("Jupiter"); test = 1; // Create a process running a simple task on a host and turn the host off during the execution of the process. @@ -90,7 +90,7 @@ int test_launcher(int argc, char *argv[]) MSG_process_sleep(10); argvF = xbt_new(char*, 2); argvF[0] = xbt_strdup("commRX"); - MSG_process_create_with_arguments("commRX", commRX, NULL, MSG_get_host_by_name("Tremblay"), 1, argvF); + MSG_process_create_with_arguments("commRX", commRX, NULL, MSG_host_by_name("Tremblay"), 1, argvF); argvF = xbt_new(char*, 2); argvF[0] = xbt_strdup("commTX"); MSG_process_create_with_arguments("commTX", commTX, NULL, jupiter, 1, argvF); @@ -104,8 +104,6 @@ int test_launcher(int argc, char *argv[]) test = 5; if (xbt_dynar_search_or_negative(tests, &test)!=-1){ XBT_INFO("Test 5 (turn off dest during a communication : Create a Process/task to make a communication between Tremblay and Jupiter and turn off Jupiter during the communication"); - XBT_INFO("Warning! I think this test is completely broken and it was revealed by exception/exception test."); - XBT_INFO("At time 20, Jupiter should wake up with a HOST_FAILURE and it gets a TRANSFERT_FAILURE. This is because when turning off Jupiter, its processes are killed, which cancels/destroys the corresponding surf communication instead of canceling a src_ or dst_timeout."); MSG_host_on(jupiter); MSG_process_sleep(10); argvF = xbt_new(char*, 2); @@ -113,7 +111,7 @@ int test_launcher(int argc, char *argv[]) MSG_process_create_with_arguments("commRX", commRX, NULL, jupiter, 1, argvF); argvF = xbt_new(char*, 2); argvF[0] = xbt_strdup("commTX"); - MSG_process_create_with_arguments("commTX", commTX, NULL, MSG_get_host_by_name("Tremblay"), 1, argvF); + MSG_process_create_with_arguments("commTX", commTX, NULL, MSG_host_by_name("Tremblay"), 1, argvF); XBT_INFO(" number of processes: %d", MSG_process_get_number()); MSG_process_sleep(10); XBT_INFO(" Turn Jupiter off"); @@ -260,7 +258,6 @@ int main(int argc, char *argv[]) platform_file = argv[1]; application_file = argv[2]; - /* MSG_config("workstation/model","KCCFLN05"); */ { /* Simulation setting */ MSG_create_environment(platform_file); }