[mpich2-commits] r4081 - mpich2/trunk/test/mpi/attr

goodell at mcs.anl.gov goodell at mcs.anl.gov
Sun Mar 15 17:54:46 CDT 2009


Author: goodell
Date: 2009-03-15 17:54:46 -0500 (Sun, 15 Mar 2009)
New Revision: 4081

Modified:
   mpich2/trunk/test/mpi/attr/keyval_double_free.c
Log:
Fix for the keyval_double_free test failures on Solaris.

We weren't actually returning a return value from the keyval delete function.
This resulted in returning 0 (MPI_SUCCESS) when compiling with gcc but a random
value when compiling with the Sun compiler.

No reviewer.


Modified: mpich2/trunk/test/mpi/attr/keyval_double_free.c
===================================================================
--- mpich2/trunk/test/mpi/attr/keyval_double_free.c	2009-03-15 20:11:30 UTC (rev 4080)
+++ mpich2/trunk/test/mpi/attr/keyval_double_free.c	2009-03-15 22:54:46 UTC (rev 4081)
@@ -12,6 +12,7 @@
 
 int delete_fn(MPI_Comm comm, int keyval, void *attr, void *extra) {
     MPI_Keyval_free(&keyval);
+    return MPI_SUCCESS;
 }
 
 int main (int argc, char **argv)



More information about the mpich2-commits mailing list