summaryrefslogtreecommitdiffstats
path: root/test/th5p.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-12-10 22:41:56 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-12-10 22:41:56 (GMT)
commitd49ed7bedfdb13c3a5d58cae8def4d5dc1eb8bbf (patch)
treeee8d51ce5060470863fcb74e92f262271ba5cd77 /test/th5p.c
parent082dd8cda9ef3d49be23dfce49e10dd30d0758bc (diff)
downloadhdf5-d49ed7bedfdb13c3a5d58cae8def4d5dc1eb8bbf.zip
hdf5-d49ed7bedfdb13c3a5d58cae8def4d5dc1eb8bbf.tar.gz
hdf5-d49ed7bedfdb13c3a5d58cae8def4d5dc1eb8bbf.tar.bz2
[svn-r140] ./test/Makefile.in
Added new tests. ./test/dsets.c NEW Tests datasets. ./test/dspace.c NEW Tests data spaces. ./test/dtypes.c NEW Tests data types. ./test/istore.c ./test/tfile.c ./test/th5p.c ./test/theap.c ./test/tohdr.c Changed to work with new function names. ./test/testhdf5.c Removed the data type and dataset tests since they're now in their own files. They had to be rewritten because of extensive changes to those interfaces.
Diffstat (limited to 'test/th5p.c')
-rw-r--r--test/th5p.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/th5p.c b/test/th5p.c
index 2d5d3bf..a39f7de 100644
--- a/test/th5p.c
+++ b/test/th5p.c
@@ -71,13 +71,13 @@ static void test_h5p_basic(void)
fid1=H5Fcreate(FILE,H5ACC_OVERWRITE,0,0);
CHECK(fid1,FAIL,"H5Fcreate");
- sid1=H5Mcreate(fid1,H5_DATASPACE,SPACE1_NAME);
+ sid1=H5Pcreate (H5P_SIMPLE);
CHECK(sid1,FAIL,"H5Mcreate");
ret=H5Pset_space(sid1,SPACE1_RANK,dims1);
CHECK(ret,FAIL,"H5Pset_space");
- n=H5Pnelem(sid1);
+ n=H5Pget_npoints(sid1);
CHECK(n,UFAIL,"H5Pnelem");
VERIFY(n,SPACE1_DIM1*SPACE1_DIM2*SPACE1_DIM3,"H5Pnelem");
@@ -89,13 +89,13 @@ static void test_h5p_basic(void)
CHECK(ret,FAIL,"H5Pget_ldims");
VERIFY(HDmemcmp(tdims,dims1,SPACE1_RANK*sizeof(uint32)),0,"H5Pget_ldims");
- sid2=H5Mcreate(fid1,H5_DATASPACE,SPACE2_NAME);
+ sid2=H5Pcreate(H5P_SIMPLE);
CHECK(sid2,FAIL,"H5Mcreate");
ret=H5Pset_space(sid2,SPACE2_RANK,dims2);
CHECK(ret,FAIL,"H5Pset_space");
- n=H5Pnelem(sid2);
+ n=H5Pget_npoints(sid2);
CHECK(n,UFAIL,"H5Pnelem");
VERIFY(n,SPACE2_DIM1*SPACE2_DIM2*SPACE2_DIM3*SPACE2_DIM4,"H5Pnelem");
@@ -107,10 +107,10 @@ static void test_h5p_basic(void)
CHECK(ret,FAIL,"H5Pget_ldims");
VERIFY(HDmemcmp(tdims,dims2,SPACE2_RANK*sizeof(uint32)),0,"H5Pget_ldims");
- ret=H5Mrelease(sid1);
+ ret=H5Mclose(sid1);
CHECK(ret,FAIL,"H5Mrelease");
- ret=H5Mrelease(sid2);
+ ret=H5Mclose(sid2);
CHECK(ret,FAIL,"H5Mrelease");
/* Close first file */