Commit 45ceb3d0 authored by Wesley Bland's avatar Wesley Bland
Browse files

Improve the senddead test



Added another send call to this test to take out the race condition. Now, the
test should fail under any circumstances if the send request isn't being
cleaned up correctly.
Signed-off-by: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent 48ec4d8a
......@@ -33,6 +33,13 @@ int main(int argc, char **argv)
if (rank == 0) {
MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN);
err = MPI_Send(buf, 100000, MPI_CHAR, 1, 0, MPI_COMM_WORLD);
#if defined (MPICH) && (MPICH_NUMVERSION >= 30100102)
MPI_Error_class(err, &errclass);
if ((err) && (errclass != MPIX_ERR_PROC_FAILED)) {
fprintf(stderr, "Wrong error code (%d) returned. Expected MPIX_ERR_PROC_FAILED\n", errclass);
}
#endif
err = MPI_Send(buf, 100000, MPI_CHAR, 1, 0, MPI_COMM_WORLD);
#if defined (MPICH) && (MPICH_NUMVERSION >= 30100102)
MPI_Error_class(err, &errclass);
if ((err) && (errclass != MPIX_ERR_PROC_FAILED)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment