summaryrefslogtreecommitdiffstats
path: root/test/vds.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/vds.c')
-rw-r--r--test/vds.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/vds.c b/test/vds.c
index 1c3dcca..50523f0 100644
--- a/test/vds.c
+++ b/test/vds.c
@@ -332,6 +332,7 @@ test_api_get_ex_dcpl(test_api_config_t config, hid_t fapl, hid_t dcpl,
{
hid_t file = -1; /* File */
hid_t dset = -1; /* Virtual dataset */
+ H5D_space_status_t space_status; /* Dataset space status */
void *plist_buf = NULL; /* Serialized property list buffer */
H5O_info_t oinfo; /* Object info struct */
htri_t tri_ret;
@@ -352,6 +353,12 @@ test_api_get_ex_dcpl(test_api_config_t config, hid_t fapl, hid_t dcpl,
if((dset = H5Dcreate2(file, "vdset", H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0)
TEST_ERROR
+ /* Test H5Dget_space_status */
+ if(H5Dget_space_status(dset, &space_status) < 0)
+ TEST_ERROR
+ if(space_status != H5D_SPACE_STATUS_ALLOCATED)
+ TEST_ERROR
+
/* Reopen dataset if requested */
if(config >= TEST_API_REOPEN_DSET) {
/* Close dataset */
@@ -401,6 +408,12 @@ test_api_get_ex_dcpl(test_api_config_t config, hid_t fapl, hid_t dcpl,
if(oinfo.meta_size.attr.index_size != (hsize_t)0)
TEST_ERROR
+ /* Test H5Dget_space_status */
+ if(H5Dget_space_status(dset, &space_status) < 0)
+ TEST_ERROR
+ if(space_status != H5D_SPACE_STATUS_ALLOCATED)
+ TEST_ERROR
+
/* Close dataset */
if(H5Dclose(dset) < 0)
TEST_ERROR