mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r1140] Added tests for H5Rget_object_type
This commit is contained in:
parent
7795177df7
commit
1cb6b0c27f
@ -120,12 +120,18 @@ test_reference_obj(void)
|
||||
/* Create references */
|
||||
ret = H5Rcreate(&wbuf[0],fid1,"/Dataset1",H5R_OBJECT,-1);
|
||||
CHECK(ret, FAIL, "H5Rcreate");
|
||||
ret = H5Rget_object_type(dataset,&wbuf[0]);
|
||||
VERIFY(ret, H5G_DATASET, "H5Rcreate");
|
||||
|
||||
ret = H5Rcreate(&wbuf[1],fid1,"/Dataset2",H5R_OBJECT,-1);
|
||||
CHECK(ret, FAIL, "H5Rcreate");
|
||||
ret = H5Rget_object_type(dataset,&wbuf[1]);
|
||||
VERIFY(ret, H5G_DATASET, "H5Rcreate");
|
||||
|
||||
ret = H5Rcreate(&wbuf[2],fid1,"/Group1",H5R_OBJECT,-1);
|
||||
CHECK(ret, FAIL, "H5Rcreate");
|
||||
ret = H5Rget_object_type(dataset,&wbuf[2]);
|
||||
VERIFY(ret, H5G_GROUP, "H5Rcreate");
|
||||
|
||||
/* Write selection to disk */
|
||||
ret=H5Dwrite(dataset,H5T_STD_REF_OBJ,H5S_ALL,H5S_ALL,H5P_DEFAULT,wbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user