From: Augustin Degomme Date: Wed, 24 Jul 2019 21:37:10 +0000 (+0200) Subject: don't test on a cancelled comm X-Git-Tag: v3.24~260 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/73f144ee8a0ad34297c50e8b2613e0cb64c54a00 don't test on a cancelled comm --- diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 9c2653a227..08003cec58 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -547,7 +547,7 @@ int Request::test(MPI_Request * request, MPI_Status * status, int* flag) { Status::empty(status); *flag = 1; if (((*request)->flags_ & MPI_REQ_PREPARED) == 0) { - if ((*request)->action_ != nullptr){ + if ((*request)->action_ != nullptr && (*request)->cancelled_ != 1){ try{ *flag = simcall_comm_test((*request)->action_); } catch (const Exception&) {