From 16ac8f74d4fa72c9092b6701bca1328770aa9dbe Mon Sep 17 00:00:00 2001 From: "H. Joe Lee" Date: Fri, 22 Sep 2023 08:40:56 -0500 Subject: Check return values from HDF5 API calls. (#3556) --- testpar/t_init_term.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testpar/t_init_term.c b/testpar/t_init_term.c index 929bb59..0268e3d 100644 --- a/testpar/t_init_term.c +++ b/testpar/t_init_term.c @@ -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) -- cgit v0.12