X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b912b1f0fd5ac64d5533fde6412c20bc0f81b2ba..00e84427362bb31706135d339eb51b28d5c69d3d:/examples/msg/msg_test.c diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index 826a9efdc8..a619042a9e 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -6,9 +6,11 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */ +#include "xbt/sysdep.h" /* calloc, printf */ /* Create a log channel to have nice outputs. */ #include "xbt/log.h" +#include "xbt/asserts.h" XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,"Messages specific for this msg example"); int master(int argc, char *argv[]); @@ -165,6 +167,7 @@ int forwarder(int argc, char *argv[]) slaves[i% slaves_count]->name); MSG_task_put(task, slaves[i % slaves_count], PORT_22); + i++; } else { INFO0("Hey ?! What's up ? "); xbt_assert0(0,"Unexpected behavior");