From acd6addc941cc88d13256fd6c8e4d15634ffeb34 Mon Sep 17 00:00:00 2001 From: Jeff Hammond Date: Wed, 22 Apr 2015 09:09:53 -0700 Subject: [PATCH 1/2] compress test cases with loop --- test/mpi/f90/f90types/createf90types.c | 51 +++++++++++++--------------------- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/test/mpi/f90/f90types/createf90types.c b/test/mpi/f90/f90types/createf90types.c index 864e40f..83b14fd 100644 --- a/test/mpi/f90/f90types/createf90types.c +++ b/test/mpi/f90/f90types/createf90types.c @@ -11,6 +11,8 @@ #include #include "mpitest.h" +static int cases[3][2] = {{3,10},{3,MPI_UNDEFINED},{MPI_UNDEFINED,10}}; + /* static char MTEST_Descrip[] = "Test the routines to access the Fortran 90 datatypes from C"; */ @@ -146,42 +148,27 @@ int main( int argc, char *argv[] ) MPI_Comm_set_errhandler( MPI_COMM_WORLD, MPI_ERRORS_RETURN ); for (i=0; i