mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
Check return values from HDF5 API calls. (#3556)
This commit is contained in:
parent
c0f42c6a11
commit
16ac8f74d4
@ -37,11 +37,9 @@ main(int argc, char **argv)
|
||||
|
||||
MPI_Finalize();
|
||||
|
||||
nerrors += GetTestNumErrs();
|
||||
|
||||
/* test if we can initialize the library with MPI being finalized
|
||||
and create a file serially */
|
||||
H5open();
|
||||
VRFY((H5open() >= 0), "H5open succeeded");
|
||||
|
||||
if (mpi_rank == 0) {
|
||||
char filename[1024];
|
||||
@ -54,7 +52,7 @@ main(int argc, char **argv)
|
||||
file_id = -1;
|
||||
}
|
||||
|
||||
H5close();
|
||||
VRFY((H5close() >= 0), "H5close succeeded");
|
||||
|
||||
if (MAINPROCESS) {
|
||||
if (0 == nerrors)
|
||||
|
Loading…
Reference in New Issue
Block a user