From 57d3bc5126fa2e627540ecb8ddb222f81a071b3d Mon Sep 17 00:00:00 2001 From: suter Date: Tue, 25 Sep 2012 16:14:40 +0200 Subject: [PATCH] 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. --- examples/simdag/sd_fail.c | 5 +++++ 1 file changed, 5 insertions(+) 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'", -- 2.20.1