diff options
author | Robb Matzke <matzke@llnl.gov> | 1997-09-16 18:00:22 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1997-09-16 18:00:22 (GMT) |
commit | 932ec25e542e1aae86e4df86a934122761032b01 (patch) | |
tree | c94fdd8eddf4ef56bb2650a5cf26ac37052c7e8e | |
parent | c2212e4c4e42b59da3eab88506271627065df76b (diff) | |
download | hdf5-932ec25e542e1aae86e4df86a934122761032b01.zip hdf5-932ec25e542e1aae86e4df86a934122761032b01.tar.gz hdf5-932ec25e542e1aae86e4df86a934122761032b01.tar.bz2 |
[svn-r90] ./test/th5d.c
Changed the H5Mfind_name() return value and removed the call
to H5Maccess().
./test/th5p.c
Removed unused variables.
-rw-r--r-- | test/th5d.c | 7 | ||||
-rw-r--r-- | test/th5p.c | 1 |
2 files changed, 7 insertions, 1 deletions
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 */ |