summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2023-09-22 13:40:56 (GMT)
committerGitHub <noreply@github.com>2023-09-22 13:40:56 (GMT)
commit16ac8f74d4fa72c9092b6701bca1328770aa9dbe (patch)
treecc9c631fcec3b4eb143592e061a40c6b2b0abae6 /testpar
parentc0f42c6a11770ed7c8fa8ceb21249088ee95f291 (diff)
downloadhdf5-16ac8f74d4fa72c9092b6701bca1328770aa9dbe.zip
hdf5-16ac8f74d4fa72c9092b6701bca1328770aa9dbe.tar.gz
hdf5-16ac8f74d4fa72c9092b6701bca1328770aa9dbe.tar.bz2
Check return values from HDF5 API calls. (#3556)
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_init_term.c6
1 files 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)