From: Arnaud Giersch Date: Sun, 9 Feb 2020 10:43:44 +0000 (+0100) Subject: Add one more state to assert. X-Git-Tag: v3.26~989 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c913a2bc465457b37c1026adf121c6c64c8c9393 Add one more state to assert. Without that, the comparison 5 lines after was useless. --- diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index b088052cc1..14501e925a 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -225,7 +225,8 @@ Comm* Comm::cancel() bool Comm::test() { - xbt_assert(state_ == State::INITED || state_ == State::STARTED || state_ == State::FINISHED); + xbt_assert(state_ == State::INITED || state_ == State::STARTED || state_ == State::STARTING || + state_ == State::FINISHED); if (state_ == State::FINISHED) return true;