From f83095551d7472ec28dcdf6423cc07f161a9e967 Mon Sep 17 00:00:00 2001 From: Fabien Chaix Date: Thu, 17 Mar 2022 10:56:11 +0200 Subject: [PATCH] Initial versio of the fault scenario test --- src/kernel/EngineImpl.cpp | 2 ++ teshsuite/s4u/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1