[svn-r2864] Purpose:

Additional testing.
Description:
    Verify that calling H5Rget_obj_type with a region reference fails.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
This commit is contained in:
Quincey Koziol 2000-11-10 19:12:21 -05:00
parent 2047b4fc44
commit b20fa011c2

View File

@ -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");