From 4b0481e248f4bea29ad084627e0a0a3f9a643082 Mon Sep 17 00:00:00 2001 From: "H. Joe Lee" Date: Fri, 22 Sep 2023 08:40:56 -0500 Subject: [PATCH] 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 929bb59890d..0268e3d9eca 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)