mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
restored tst_mode tests
This commit is contained in:
parent
680e44f628
commit
9ded9b1dfd
@ -8,6 +8,8 @@
|
||||
set -x
|
||||
set -e
|
||||
echo
|
||||
echo "Testing MPI parallel I/O with various other mode flags..."
|
||||
@MPIEXEC@ -n 1 ./tst_mode
|
||||
echo
|
||||
echo "Testing MPI parallel I/O without netCDF..."
|
||||
@MPIEXEC@ -n 4 ./tst_mpi_parallel
|
||||
|
@ -32,7 +32,11 @@ main(int argc, char** argv)
|
||||
if ((retval = nc_create_par(FILE_NAME, NC_CLOBBER|NC_NETCDF4, MPI_COMM_WORLD, MPI_INFO_NULL, &ncid))) ERR;
|
||||
if ((retval = nc_def_var(ncid,"whatever",NC_INT,0,NULL,&varid))) ERR;
|
||||
retval = nc_def_var_fletcher32(ncid,varid,NC_FLETCHER32);
|
||||
#ifdef HDF5_SUPPORTS_PAR_FILTERS
|
||||
if(retval != NC_NOERR) ERR;
|
||||
#else
|
||||
if(retval != NC_EINVAL) ERR;
|
||||
#endif
|
||||
if ((retval = nc_abort(ncid)))
|
||||
{
|
||||
fprintf(stderr,"XXX: err=%d\n",retval);
|
||||
@ -44,7 +48,11 @@ main(int argc, char** argv)
|
||||
if ((retval = nc_create_par(FILE_NAME, NC_CLOBBER|NC_NETCDF4, MPI_COMM_WORLD, MPI_INFO_NULL, &ncid))) ERR;
|
||||
if ((retval = nc_def_var(ncid,"whatever",NC_INT,0,NULL,&varid))) ERR;
|
||||
retval = nc_def_var_deflate(ncid,varid, NC_NOSHUFFLE, 1, 1);
|
||||
#ifdef HDF5_SUPPORTS_PAR_FILTERS
|
||||
if(retval != NC_NOERR) ERR;
|
||||
#else
|
||||
if(retval != NC_EINVAL) ERR;
|
||||
#endif
|
||||
if ((retval = nc_abort(ncid))) {
|
||||
fprintf(stderr,"XXX: nc_abort: %d\n",retval); fflush(stderr);
|
||||
ERR;
|
||||
|
Loading…
Reference in New Issue
Block a user