Skip to content

Instantly share code, notes, and snippets.

@goodell
Created March 7, 2012 23:48
Show Gist options
  • Select an option

  • Save goodell/1997357 to your computer and use it in GitHub Desktop.

Select an option

Save goodell/1997357 to your computer and use it in GitHub Desktop.
commit bd18e1cf379cea00ba56f87b36b5b869b93d99bb
Author: Dave Goodell <[email protected]>
Date: Wed Mar 7 16:23:45 2012 -0600
strengthen mprobe test checks
No reviewer.
---
test/mpi/pt2pt/mprobe.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/mpi/pt2pt/mprobe.c b/test/mpi/pt2pt/mprobe.c
index e36949c..16517e2 100644
--- a/test/mpi/pt2pt/mprobe.c
+++ b/test/mpi/pt2pt/mprobe.c
@@ -75,11 +75,14 @@ int main(int argc, char **argv)
check(s1.MPI_SOURCE == 0);
check(s1.MPI_TAG == 5);
check(s1.MPI_ERROR == MPI_ERR_DIMS);
+ check(msg != MPIX_MESSAGE_NULL);
count = -1;
MPI_Get_count(&s1, MPI_INT, &count);
check(count == 2);
+ recvbuf[0] = 0x01234567;
+ recvbuf[1] = 0x89abcdef;
MPIX_Mrecv(recvbuf, count, MPI_INT, &msg, &s2);
check(recvbuf[0] == 0xdeadbeef);
check(recvbuf[1] == 0xfeedface);
@@ -107,12 +110,15 @@ int main(int argc, char **argv)
check(s1.MPI_SOURCE == 0);
check(s1.MPI_TAG == 5);
check(s1.MPI_ERROR == MPI_ERR_DIMS);
+ check(msg != MPIX_MESSAGE_NULL);
count = -1;
MPI_Get_count(&s1, MPI_INT, &count);
check(count == 2);
rreq = MPI_REQUEST_NULL;
+ recvbuf[0] = 0x01234567;
+ recvbuf[1] = 0x89abcdef;
MPIX_Imrecv(recvbuf, count, MPI_INT, &msg, &rreq);
check(rreq != MPI_REQUEST_NULL);
MPI_Wait(&rreq, &s2);
@@ -151,6 +157,8 @@ int main(int argc, char **argv)
MPI_Get_count(&s1, MPI_INT, &count);
check(count == 2);
+ recvbuf[0] = 0x01234567;
+ recvbuf[1] = 0x89abcdef;
MPIX_Mrecv(recvbuf, count, MPI_INT, &msg, &s2);
check(recvbuf[0] == 0xdeadbeef);
check(recvbuf[1] == 0xfeedface);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment