X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/51d69b9600fd0044d0facb4ad91af08efa23471c..27d91a033ba0229a15e7b2fbae4833156b015c04:/tools/tesh2/src/runner.c diff --git a/tools/tesh2/src/runner.c b/tools/tesh2/src/runner.c index 098efe8766..7c6b6ae4a2 100644 --- a/tools/tesh2/src/runner.c +++ b/tools/tesh2/src/runner.c @@ -525,8 +525,10 @@ runner_run(void) /* run all the units */ units_run_all(runner->units, mutex); + if(!interrupted) runner_wait(); + /* if the runner is timeouted or receive a interruption request * , interrupt all the active units. @@ -553,6 +555,7 @@ runner_wait(void) /* wait for the end of all the units */ xbt_os_sem_acquire(units_sem); + runner->waiting = 0; }