X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..9f54e5c450791e19b01f31e86c93e5a603fd0c4b:/examples/msg/masterslave/masterslave_failure.c diff --git a/examples/msg/masterslave/masterslave_failure.c b/examples/msg/masterslave/masterslave_failure.c index 53d1116c36..b7dd543fe9 100644 --- a/examples/msg/masterslave/masterslave_failure.c +++ b/examples/msg/masterslave/masterslave_failure.c @@ -86,6 +86,11 @@ int master(int argc, char *argv[]) ("Mmh. Something went wrong with '%s'. Nevermind. Let's keep going!", slaves[i % slaves_count]->name); MSG_task_destroy(task); + } else if (a == MSG_TIMEOUT) { + INFO1 + ("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!", + slaves[i % slaves_count]->name); + MSG_task_destroy(task); } else { INFO0("Hey ?! What's up ? "); xbt_assert0(0, "Unexpected behavior"); @@ -107,6 +112,11 @@ int master(int argc, char *argv[]) INFO1("Mmh. Can't reach '%s'! Nevermind. Let's keep going!", slaves[i]->name); MSG_task_destroy(task); + } else if (a == MSG_TIMEOUT) { + INFO1 + ("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!", + slaves[i % slaves_count]->name); + MSG_task_destroy(task); } else { INFO0("Hey ?! What's up ? "); xbt_assert2(0, "Unexpected behavior with '%s': %d", slaves[i]->name, a); @@ -172,10 +182,9 @@ MSG_error_t test_all(const char *platform_file, const char *application_file) { MSG_error_t res = MSG_OK; - /* MSG_config("workstation_model","KCCFLN05"); */ + /* MSG_config("workstation/model","KCCFLN05"); */ { /* Simulation setting */ MSG_set_channel_number(MAX_CHANNEL); - MSG_paje_output("msg_test.trace"); MSG_create_environment(platform_file); } { /* Application deployment */