summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-11-11 00:12:21 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-11-11 00:12:21 (GMT)
commitb20fa011c203a6d8f37fc22047263a5543b0f74d (patch)
tree22327ec9c9e864a5353bdc9378e6406764d56a1d
parent2047b4fc44d5f585b97cd4ebe74e141b7204bf29 (diff)
downloadhdf5-b20fa011c203a6d8f37fc22047263a5543b0f74d.zip
hdf5-b20fa011c203a6d8f37fc22047263a5543b0f74d.tar.gz
hdf5-b20fa011c203a6d8f37fc22047263a5543b0f74d.tar.bz2
[svn-r2864] Purpose:
Additional testing. Description: Verify that calling H5Rget_obj_type with a region reference fails. Platforms tested: FreeBSD 4.1.1 (hawkwind)
-rw-r--r--test/trefer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 24f4bdf..28cf428 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -427,6 +427,10 @@ test_reference_region(void)
dset2 = H5Rdereference(dset1,H5R_DATASET_REGION,&rbuf[0]);
CHECK(dset2, FAIL, "H5Rdereference");
+ /* Check what H5Rget_object_type function returns */
+ ret = H5Rget_object_type(dset1, &rbuf[0]);
+ VERIFY(ret, H5G_UNKNOWN, "H5Rget_object_type");
+
/* Check information in referenced dataset */
sid1 = H5Dget_space(dset2);
CHECK(sid1, FAIL, "H5Dget_space");