summaryrefslogtreecommitdiffstats
path: root/test/vds.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-07-22 21:41:18 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-07-22 21:41:18 (GMT)
commit49076d6d229abdf59cccac47a86431c977a60037 (patch)
tree96e1966990476771734d9c757943c93f2e22fb87 /test/vds.c
parent6bb109bf6d0b17e4c67a1fc3d252a0b6547c875f (diff)
downloadhdf5-49076d6d229abdf59cccac47a86431c977a60037.zip
hdf5-49076d6d229abdf59cccac47a86431c977a60037.tar.gz
hdf5-49076d6d229abdf59cccac47a86431c977a60037.tar.bz2
[svn-r27425] Implement support for H5Pequal with VDS properties.
Testing for H5Pequal with VDS. Tested: ummon
Diffstat (limited to 'test/vds.c')
-rw-r--r--test/vds.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/vds.c b/test/vds.c
index 573af9e..04c0e5f 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 */
void *plist_buf = NULL; /* Serialized property list buffer */
+ htri_t tri_ret;
HDassert((config >= TEST_API_BASIC) && (config < TEST_API_NTESTS));
HDassert(fapl >= 0);
@@ -414,6 +415,17 @@ test_api_get_ex_dcpl(test_api_config_t config, hid_t fapl, hid_t dcpl,
*ex_dcpl = dcpl;
} /* end else */
+ /* Verify examination DCPL is equal to original DCPL. Do not compare the
+ * plist to itselt, and do not do the comparison if we reopened the file,
+ * because in that case the extent of the source dset will not be corrent.
+ */
+ if((*ex_dcpl != dcpl) && (config != TEST_API_REOPEN_FILE)) {
+ if((tri_ret = H5Pequal(dcpl, *ex_dcpl)) < 0)
+ TEST_ERROR
+ if(!tri_ret)
+ TEST_ERROR
+ } /* end if */
+
return 0;
error: