Skip to content

Commit

Permalink
Check return values from HDF5 API calls. (#3556)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee authored Sep 22, 2023
1 parent c0f42c6 commit 16ac8f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions testpar/t_init_term.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -54,7 +52,7 @@ main(int argc, char **argv)
file_id = -1;
}

H5close();
VRFY((H5close() >= 0), "H5close succeeded");

if (MAINPROCESS) {
if (0 == nerrors)
Expand Down

0 comments on commit 16ac8f7

Please sign in to comment.