From: Arnaud Giersch Date: Fri, 18 Feb 2022 17:28:27 +0000 (+0100) Subject: Apparently these asserts are not failing anymore. Uncomment. X-Git-Tag: v3.31~364 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d09147dbde79d48a3952e1eaeeabdd7b4bbf4524 Apparently these asserts are not failing anymore. Uncomment. --- diff --git a/src/surf/ns3/ns3_simulator.cpp b/src/surf/ns3/ns3_simulator.cpp index 5b4f136789..db27ef5b6a 100644 --- a/src/surf/ns3/ns3_simulator.cpp +++ b/src/surf/ns3/ns3_simulator.cpp @@ -111,9 +111,9 @@ static void normalClose_callback(ns3::Ptr socket) SgFlow* flow = getFlowFromSocket(socket); XBT_DEBUG("normalClose_cb of F[%p, %p] total: %u; sent: %u", flow, flow->action_, flow->total_bytes_, flow->sent_bytes_); - // xbt_assert(flow->total_bytes_ == flow->sent_bytes_, - // "total_bytes (=%u) is not sent_bytes(=%u)", flow->total_bytes_ , flow->sent_bytes_); - // xbt_assert(flow->remaining_ == 0, "Remaining is not 0 but %u", flow->remaining_); + xbt_assert(flow->total_bytes_ == flow->sent_bytes_, "total_bytes (=%u) is not sent_bytes(=%u)", flow->total_bytes_, + flow->sent_bytes_); + xbt_assert(flow->remaining_ == 0, "Remaining is not 0 but %u", flow->remaining_); receive_callback(socket); }