diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2016-04-05 04:11:54 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2016-04-05 04:11:54 (GMT) |
commit | a816d031089f0afd2f2a2261a4e0d6277491e8b5 (patch) | |
tree | 7af77d67155939390e54e5cc356ba934943adc78 /testpar | |
parent | 4282c5f01fb6eb152cd4e6b18ecb6419934760e5 (diff) | |
download | hdf5-a816d031089f0afd2f2a2261a4e0d6277491e8b5.zip hdf5-a816d031089f0afd2f2a2261a4e0d6277491e8b5.tar.gz hdf5-a816d031089f0afd2f2a2261a4e0d6277491e8b5.tar.bz2 |
[svn-r29632] Description:
Align w/revise_chunks branch
Tested on:
MacOSX/64 10.11.4 (amazon) w/parallel
(h5committest forthcoming)
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_dset.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/testpar/t_dset.c b/testpar/t_dset.c index b7f2fc0..ceacb3a 100644 --- a/testpar/t_dset.c +++ b/testpar/t_dset.c @@ -3308,7 +3308,7 @@ test_actual_io_mode(int selection_mode) { "reading and writing are the same for actual_chunk_opt_mode"); /* Test values */ - if(actual_chunk_opt_mode_expected != (unsigned) -1 && actual_io_mode_expected != (unsigned) -1) { + if(actual_chunk_opt_mode_expected != (H5D_mpio_actual_chunk_opt_mode_t) -1 && actual_io_mode_expected != (H5D_mpio_actual_io_mode_t) -1) { sprintf(message, "Actual Chunk Opt Mode has the correct value for %s.\n",test_name); VRFY((actual_chunk_opt_mode_write == actual_chunk_opt_mode_expected), message); sprintf(message, "Actual IO Mode has the correct value for %s.\n",test_name); @@ -4152,16 +4152,20 @@ dataset_atomicity(void) MPI_Barrier (comm); /* make sure setting atomicity fails on a serial file ID */ - /* open the file collectively */ - fid=H5Fopen(filename,H5F_ACC_RDWR,H5P_DEFAULT); - VRFY((fid >= 0), "H5Fopen succeeed"); + /* file locking allows only one file open (serial) for writing */ + if(MAINPROCESS){ + fid=H5Fopen(filename,H5F_ACC_RDWR,H5P_DEFAULT); + VRFY((fid >= 0), "H5Fopen succeeed"); + } /* should fail */ ret = H5Fset_mpi_atomicity (fid , TRUE); VRFY((ret == FAIL), "H5Fset_mpi_atomicity failed"); - ret = H5Fclose(fid); - VRFY((ret >= 0), "H5Fclose succeeded"); + if(MAINPROCESS){ + ret = H5Fclose(fid); + VRFY((ret >= 0), "H5Fclose succeeded"); + } MPI_Barrier (comm); |