Check return values from HDF5 API calls. (#3556)

This commit is contained in:
H. Joe Lee 2023-09-22 08:40:56 -05:00 committed by GitHub
parent c0f42c6a11
commit 16ac8f74d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)