[svn-r90] ./test/th5d.c

Changed the H5Mfind_name() return value and removed the call
	to H5Maccess().

./test/th5p.c
	Removed unused variables.
This commit is contained in:
Robb Matzke 1997-09-16 13:00:22 -05:00
parent c2212e4c4e
commit 932ec25e54
2 changed files with 7 additions and 1 deletions

View File

@ -167,7 +167,9 @@ static void test_h5d_basic_write(void)
static void test_h5d_basic_read(void)
{
hatom_t fid1; /* HDF5 File IDs */
#if 0
hatom_t oid1; /* Dataset OID */
#endif
hatom_t did1; /* Dataset ID */
hatom_t tid1; /* Datatype ID */
hatom_t sid1; /* Dataspace ID */
@ -185,11 +187,16 @@ static void test_h5d_basic_read(void)
fid1=H5Fopen(FILE,0,0);
CHECK(fid1,FAIL,"H5Fopen");
#if 0
oid1=H5Mfind_name(fid1,H5_DATASET,DATA1_NAME);
CHECK(oid1,FAIL,"H5Mfind_name");
did1=H5Maccess(oid1);
CHECK(did1,FAIL,"H5Maccess");
#else
did1 = H5Mfind_name (fid1, H5_DATASET, DATA1_NAME);
CHECK (did1, FAIL, "H5Mfind_name");
#endif
ret=H5Dget_info(did1,&tid1,&sid1);
CHECK(ret,FAIL,"H5Pset_space");

View File

@ -57,7 +57,6 @@ static void test_h5p_basic(void)
{
hatom_t fid1; /* HDF5 File IDs */
hatom_t sid1,sid2; /* Dataspace ID */
uint32 rank1, rank2; /* Dataspace ranks */
uint32 dims1[]={SPACE1_DIM1,SPACE1_DIM2,SPACE1_DIM3}, /* dataspace dim sizes */
dims2[]={SPACE2_DIM1,SPACE2_DIM2,SPACE2_DIM3,SPACE2_DIM4};
uintn n; /* number of dataspace elements */