Hello All,
I was investigating to see how this was missed earlier. In our MPICH large-message test (test/mpi/pt2pt/large_message.c) which should've caught this, the code which tests the result of MPI_Get_count was missing.
I was checking the large_message.c test that is shipped with MPICH-3.1.4 (latest stable) and MPICH-3.2rc1 (preview release) available from the MPICH site. Both have the same issue. The large-message-test.patch should fix this.
If the patch looks good, it would be good if this gets applied to MPICH itself so that all MPICH derivatives can benefit from it.
Best Regards,
Hari.