diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-16 21:00:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-11-16 21:00:28 (GMT) |
commit | 5387697213fa4e53205664c3d90f81def08cee6f (patch) | |
tree | a79a60da1147bdf41a5893980961626206cbcb58 /test | |
parent | ac4ee3881113b02300298aa90a72e8e4127b33a4 (diff) | |
download | hdf5-5387697213fa4e53205664c3d90f81def08cee6f.zip hdf5-5387697213fa4e53205664c3d90f81def08cee6f.tar.gz hdf5-5387697213fa4e53205664c3d90f81def08cee6f.tar.bz2 |
[svn-r2955] Purpose:
Code checkpoint
Description:
More generic property testing.
Platforms tested:
FreeBSD 4.1.1 (hawkwind)
Diffstat (limited to 'test')
-rw-r--r-- | test/tgenprop.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/tgenprop.c b/test/tgenprop.c index ac23526..e5e6663 100644 --- a/test/tgenprop.c +++ b/test/tgenprop.c @@ -177,6 +177,10 @@ test_genprop_basic_class_prop(void) CHECK_I(ret, "H5Pget_nprops"); VERIFY(nprops, 0, "H5Pget_nprops"); + /* Check the existance of the first property (should fail) */ + ret = H5Pexist(cid1,PROP1_NAME); + VERIFY(ret, 0, "H5Pexist"); + /* Insert first property into class (with no callbacks) */ ret = H5Pregister(cid1,PROP1_NAME,PROP1_SIZE,PROP1_DEF_VALUE,NULL,NULL,NULL,NULL); CHECK_I(ret, "H5Pregister"); @@ -185,6 +189,10 @@ test_genprop_basic_class_prop(void) ret = H5Pregister(cid1,PROP1_NAME,PROP1_SIZE,PROP1_DEF_VALUE,NULL,NULL,NULL,NULL); VERIFY(ret, FAIL, "H5Pregister"); + /* Check the existance of the first property */ + ret = H5Pexist(cid1,PROP1_NAME); + VERIFY(ret, 1, "H5Pexist"); + /* Check the size of the first property */ ret = H5Pget_size(cid1,PROP1_NAME,&size); CHECK_I(ret, "H5Pget_size"); @@ -203,6 +211,10 @@ test_genprop_basic_class_prop(void) ret = H5Pregister(cid1,PROP2_NAME,PROP2_SIZE,PROP2_DEF_VALUE,NULL,NULL,NULL,NULL); VERIFY(ret, FAIL, "H5Pregister"); + /* Check the existance of the second property */ + ret = H5Pexist(cid1,PROP2_NAME); + VERIFY(ret, 1, "H5Pexist"); + /* Check the size of the second property */ ret = H5Pget_size(cid1,PROP2_NAME,&size); CHECK_I(ret, "H5Pget_size"); @@ -217,6 +229,10 @@ test_genprop_basic_class_prop(void) ret = H5Pregister(cid1,PROP3_NAME,PROP3_SIZE,PROP3_DEF_VALUE,NULL,NULL,NULL,NULL); CHECK_I(ret, "H5Pregister"); + /* Check the existance of the third property */ + ret = H5Pexist(cid1,PROP3_NAME); + VERIFY(ret, 1, "H5Pexist"); + /* Check the size of the third property */ ret = H5Pget_size(cid1,PROP3_NAME,&size); CHECK_I(ret, "H5Pget_size"); @@ -340,8 +356,7 @@ test_genprop_class_iter(void) VERIFY(ret, 0, "H5Piterate"); /* Iterate over last three properties in class */ - idx=1; - iter_struct.iter_count=1; + idx=iter_struct.iter_count=1; ret = H5Piterate(cid1,&idx,test_genprop_iter1,&iter_struct); VERIFY(ret, 0, "H5Piterate"); VERIFY(idx, (int)nprops, "H5Piterate"); |