summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-07-23 19:03:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-07-23 19:03:01 (GMT)
commit8e9136b83704e2f9adc03bfbea4a227b5eabbe16 (patch)
tree903b2fa72287ee0212efdff328aa4c2ef550d45b /test/th5s.c
parent3ca1c8b1313a8c9f7759299dc6071b2f51993f26 (diff)
downloadhdf5-8e9136b83704e2f9adc03bfbea4a227b5eabbe16.zip
hdf5-8e9136b83704e2f9adc03bfbea4a227b5eabbe16.tar.gz
hdf5-8e9136b83704e2f9adc03bfbea4a227b5eabbe16.tar.bz2
[svn-r533] Added tests for H5Sextent_class (renamed H5Sget_class)
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");