From 932ec25e542e1aae86e4df86a934122761032b01 Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Tue, 16 Sep 1997 13:00:22 -0500 Subject: [svn-r90] ./test/th5d.c Changed the H5Mfind_name() return value and removed the call to H5Maccess(). ./test/th5p.c Removed unused variables. --- test/th5d.c | 7 +++++++ test/th5p.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/th5d.c b/test/th5d.c index 6a26250..1997d7d 100644 --- a/test/th5d.c +++ b/test/th5d.c @@ -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"); diff --git a/test/th5p.c b/test/th5p.c index 0238776..211ea69 100644 --- a/test/th5p.c +++ b/test/th5p.c @@ -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 */ -- cgit v0.12