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 /test/th5d.c | |
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.
Diffstat (limited to 'test/th5d.c')
-rw-r--r-- | test/th5d.c | 7 |
1 files changed, 7 insertions, 0 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"); |