diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 16:38:08 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 16:38:08 (GMT) |
commit | 2f1b5170210bf076b2338fff658132ace53d157e (patch) | |
tree | 25750d9c2a41cef70db7bee31e71fda97476a6a3 /test/vds.c | |
parent | f962c3d963b16a37170f9173070b8a04b7b939e0 (diff) | |
download | hdf5-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/vds.c')
-rw-r--r-- | test/vds.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |