X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ee7e9c2e455536ab817ae0136acfbb53822eecd..f25af1e2829458e33a3a0b74c75865c89dff5f9e:/examples/msg/masterslave/masterslave_failure.c diff --git a/examples/msg/masterslave/masterslave_failure.c b/examples/msg/masterslave/masterslave_failure.c index 901d08c229..bd8c4cc7ac 100644 --- a/examples/msg/masterslave/masterslave_failure.c +++ b/examples/msg/masterslave/masterslave_failure.c @@ -96,7 +96,7 @@ int master(int argc, char *argv[]) MSG_task_destroy(task); } else { XBT_INFO("Hey ?! What's up ? "); - xbt_assert0(0, "Unexpected behavior"); + xbt_die( "Unexpected behavior"); } } @@ -124,8 +124,7 @@ int master(int argc, char *argv[]) MSG_task_destroy(task); } else { XBT_INFO("Hey ?! What's up ? "); - xbt_assert2(0, "Unexpected behavior with '%s': %d", slaves[i]->name, - a); + xbt_die("Unexpected behavior with '%s': %d", slaves[i]->name, a); } } @@ -166,7 +165,7 @@ int slave(int argc, char *argv[]) return 0; } else { XBT_INFO("Hey ?! What's up ? "); - xbt_assert0(0, "Unexpected behavior"); + xbt_die("Unexpected behavior"); } } else if (a == MSG_HOST_FAILURE) { XBT_INFO @@ -176,7 +175,7 @@ int slave(int argc, char *argv[]) XBT_INFO("Mmh. Something went wrong. Nevermind. Let's keep going!"); } else { XBT_INFO("Hey ?! What's up ? "); - xbt_assert0(0, "Unexpected behavior"); + xbt_die("Unexpected behavior"); } } XBT_INFO("I'm done. See you!");