summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:38:08 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:38:08 (GMT)
commit2f1b5170210bf076b2338fff658132ace53d157e (patch)
tree25750d9c2a41cef70db7bee31e71fda97476a6a3 /test
parentf962c3d963b16a37170f9173070b8a04b7b939e0 (diff)
downloadhdf5-2f1b5170210bf076b2338fff658132ace53d157e.zip
hdf5-2f1b5170210bf076b2338fff658132ace53d157e.tar.gz
hdf5-2f1b5170210bf076b2338fff658132ace53d157e.tar.bz2
[svn-r29884] VDS correction for get_space_status, with test change.
Add new files for repack tests. Add repack tests for VDS files.
Diffstat (limited to 'test')
-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