From: suter Date: Tue, 25 Sep 2012 14:14:40 +0000 (+0200) Subject: circumvent the fact that if you let the simulation runs, trace events X-Git-Tag: v3_8~146^2~27 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/57d3bc5126fa2e627540ecb8ddb222f81a071b3d?hp=d2f1cdeae9918240b1f843daf9f80c0f318ee180 circumvent the fact that if you let the simulation runs, trace events are chomped once for all. However, if watch points are added, everything is fine. --- diff --git a/examples/simdag/sd_fail.c b/examples/simdag/sd_fail.c index 0c19e37d02..e383395735 100644 --- a/examples/simdag/sd_fail.c +++ b/examples/simdag/sd_fail.c @@ -29,6 +29,8 @@ int main(int argc, char **argv) * will stop */ XBT_INFO("First test: COMP_SEQ task"); task = SD_task_create_comp_seq("Poor task", NULL, 2e10); + SD_task_watch(task, SD_FAILED); + SD_task_watch(task, SD_DONE); XBT_INFO("Schedule task '%s' on workstation 'Faulty Host'", SD_task_get_name(task)); @@ -63,6 +65,9 @@ int main(int argc, char **argv) XBT_INFO("Second test: NON TYPED task"); task = SD_task_create("Poor parallel task", NULL, 2e10); + SD_task_watch(task, SD_FAILED); + SD_task_watch(task, SD_DONE); + computation_amount[0] = 2e10; XBT_INFO("Schedule task '%s' on workstation 'Faulty Host'",