summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/th5s.c b/test/th5s.c
index 000ca2f..6b4a66c 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -161,6 +161,7 @@ test_h5s_scalar_write(void)
unsigned rank; /* Logical rank of dataspace */
hsize_t tdims[4]; /* Dimension array to test with */
size_t n; /* Number of dataspace elements */
+ H5S_class_t ext_type; /* Extent type */
herr_t ret; /* Generic return value */
/* Output message about test being performed */
@@ -185,6 +186,10 @@ test_h5s_scalar_write(void)
ret = H5Sextent_dims(sid1, tdims, NULL);
VERIFY(ret, 0, "H5Sextent_dims");
+ /* Verify extent type */
+ ext_type = H5Sextent_class(sid1);
+ VERIFY(ext_type, H5S_SCALAR, "H5Sextent_class");
+
/* Create a dataset */
dataset=H5Dcreate(fid1,"Dataset1",H5T_NATIVE_UINT,sid1,H5P_DEFAULT);
CHECK(dataset, FAIL, "H5Dcreate");