summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-03-12 20:05:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-03-12 20:05:49 (GMT)
commit1cb6b0c27ffd911e6d350954cea8cc000e3ebaea (patch)
treee709f224090d80f126a4cdcafd40604088f567f5 /test
parent7795177df772237ca07e521cc6900be1933c795a (diff)
downloadhdf5-1cb6b0c27ffd911e6d350954cea8cc000e3ebaea.zip
hdf5-1cb6b0c27ffd911e6d350954cea8cc000e3ebaea.tar.gz
hdf5-1cb6b0c27ffd911e6d350954cea8cc000e3ebaea.tar.bz2
[svn-r1140] Added tests for H5Rget_object_type
Diffstat (limited to 'test')
-rw-r--r--test/trefer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 20b641d..585c51d 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -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);