summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-05-09 00:31:54 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-09 00:31:54 (GMT)
commit561974d329700ca32ec47170fb8316f1ae1ec00e (patch)
tree001d62100a1778904c01f71a021df75bc07685af /test
parenta69c33af13578b0935419adb5a1ec89563123e52 (diff)
downloadhdf5-561974d329700ca32ec47170fb8316f1ae1ec00e.zip
hdf5-561974d329700ca32ec47170fb8316f1ae1ec00e.tar.gz
hdf5-561974d329700ca32ec47170fb8316f1ae1ec00e.tar.bz2
Add missing return-value check.
Diffstat (limited to 'test')
-rw-r--r--test/vfd_swmr_bigset_writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c
index c150a27..4139be7 100644
--- a/test/vfd_swmr_bigset_writer.c
+++ b/test/vfd_swmr_bigset_writer.c
@@ -414,6 +414,9 @@ verify_extensible_dset(state_t *s, unsigned int which, uint32_t mat[ROWS][COLS],
filespace = H5Dget_space(ds);
+ if (filespace == badhid)
+ errx(EXIT_FAILURE, "H5Dget_space failed");
+
if (H5Sget_simple_extent_dims(filespace, size, NULL) < 0)
errx(EXIT_FAILURE, "H5Sget_simple_extent_dims failed");