From: Fabien Chaix Date: Thu, 17 Mar 2022 08:56:11 +0000 (+0200) Subject: Initial versio of the fault scenario test X-Git-Tag: v3.32~227^2~11 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f83095551d7472ec28dcdf6423cc07f161a9e967 Initial versio of the fault scenario test --- diff --git a/src/kernel/EngineImpl.cpp b/src/kernel/EngineImpl.cpp index 4217481620..58dccdbd1f 100644 --- a/src/kernel/EngineImpl.cpp +++ b/src/kernel/EngineImpl.cpp @@ -585,6 +585,8 @@ double EngineImpl::solve(double max_date) const XBT_DEBUG("Updating models (min = %g, NOW = %g, next_event_date = %g)", time_delta, now_, next_event_date); while (auto* event = profile::future_evt_set.pop_leq(next_event_date, &value, &resource)) { + if(value<0) + continue; if (resource->is_used() || (watched_hosts().find(resource->get_cname()) != watched_hosts().end())) { time_delta = next_event_date - now_; XBT_DEBUG("This event invalidates the next_occurring_event() computation of models. Next event set to %f", diff --git a/teshsuite/s4u/CMakeLists.txt b/teshsuite/s4u/CMakeLists.txt index ac3d01ab2a..cd6127c2b4 100644 --- a/teshsuite/s4u/CMakeLists.txt +++ b/teshsuite/s4u/CMakeLists.txt @@ -6,7 +6,7 @@ endforeach() foreach(x actor actor-autorestart actor-suspend activity-lifecycle - comm-get-sender comm-pt2pt wait-all-for wait-any-for + comm-get-sender comm-pt2pt comm-fault-scenarios wait-all-for wait-any-for cloud-interrupt-migration cloud-two-execs monkey-masterworkers monkey-semaphore concurrent_rw