diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-12 21:21:38 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-12 21:21:38 (GMT) |
commit | bc66efc788bc77c9c133a9fc3cc29e26fa659bab (patch) | |
tree | d94f011f1813b4bc479a74f29048418c83f86d02 /hl/test/test_ds.c | |
parent | 3dfec8d73b65c5c715581e41844e075b84e8f581 (diff) | |
download | hdf5-bc66efc788bc77c9c133a9fc3cc29e26fa659bab.zip hdf5-bc66efc788bc77c9c133a9fc3cc29e26fa659bab.tar.gz hdf5-bc66efc788bc77c9c133a9fc3cc29e26fa659bab.tar.bz2 |
[svn-r12229] Purpose:
new feature
Description:
1) separated the HL library into "public" and "private" header files, with the same caracteristics as the basic library
2) added the public headers to hdf5.h (with a conditional include macro, defined in configure.in)
3) added the path to HL in all Makefile.am 's , because of the inclusion in hdf5.h
Solution:
Platforms tested:
linux 32, 64
AIX
solaris
with fortran and c++
(one packet table example fails)
Misc. update:
Diffstat (limited to 'hl/test/test_ds.c')
-rw-r--r-- | hl/test/test_ds.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c index 17af015..3e72766 100644 --- a/hl/test/test_ds.c +++ b/hl/test/test_ds.c @@ -12,11 +12,11 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#include "H5DS.h" -#include "H5LT.h" #include <stdlib.h> #include <string.h> -#include "H5IM.h" +#include "H5DSprivate.h" +#include "H5LTprivate.h" +#include "H5IMprivate.h" /* operator functions */ static herr_t verifiy_scale(hid_t dset, unsigned dim, hid_t scale, void *visitor_data); @@ -776,7 +776,7 @@ static int test_simple(void) goto out; /* detach again, it should fail */ - if (H5DSdetach_scale(did,dsid,DIM1)==SUCCESS) + if (H5DSdetach_scale(did,dsid,DIM1)==SUCCEED) goto out; /* verify attach, it must return 0 for no attach */ @@ -1751,7 +1751,7 @@ static int test_errors(void) TESTING2("attach a dataset to itself"); - if (H5DSattach_scale(did,did,0)==SUCCESS) + if (H5DSattach_scale(did,did,0)==SUCCEED) goto out; PASSED(); @@ -1762,7 +1762,7 @@ static int test_errors(void) */ TESTING2("attach a group with a dataset"); - if (H5DSattach_scale(gid,dsid,0)==SUCCESS) + if (H5DSattach_scale(gid,dsid,0)==SUCCEED) goto out; PASSED(); @@ -1773,7 +1773,7 @@ static int test_errors(void) */ TESTING2("attach a dataset with a group"); - if (H5DSattach_scale(did,gid,0)==SUCCESS) + if (H5DSattach_scale(did,gid,0)==SUCCEED) goto out; PASSED(); @@ -1784,7 +1784,7 @@ static int test_errors(void) */ TESTING2("set scale for a group"); - if (H5DSset_scale(gid,"scale 1")==SUCCESS) + if (H5DSset_scale(gid,"scale 1")==SUCCEED) goto out; PASSED(); @@ -1847,7 +1847,7 @@ static int test_errors(void) goto out; /* try to attach "ds_a" to "dset_a", not valid */ - if(H5DSattach_scale(did,dsid,0)==SUCCESS) + if(H5DSattach_scale(did,dsid,0)==SUCCEED) goto out; /* close */ @@ -1892,7 +1892,7 @@ static int test_errors(void) goto out; /* try to attach "ds_a" to "ds_b", not valid */ - if(H5DSattach_scale(dsid,did,0)==SUCCESS) + if(H5DSattach_scale(dsid,did,0)==SUCCEED) goto out; /* close */ @@ -1927,7 +1927,7 @@ static int test_errors(void) goto out; /* try to attach "ds_a" to the image, not valid */ - if(H5DSattach_scale(did,dsid,0)==SUCCESS) + if(H5DSattach_scale(did,dsid,0)==SUCCEED) goto out; /* close */ @@ -1988,7 +1988,7 @@ static int test_errors(void) goto out; /* try to detach "ds_a" from "dset_a" */ - if(H5DSdetach_scale(did,dsid,0)==SUCCESS) + if(H5DSdetach_scale(did,dsid,0)==SUCCEED) goto out; /* close */ @@ -2016,7 +2016,7 @@ static int test_errors(void) goto out; /* try to detach "ds_a" from "grp" */ - if(H5DSdetach_scale(gid,dsid,0)==SUCCESS) + if(H5DSdetach_scale(gid,dsid,0)==SUCCEED) goto out; /* close */ @@ -2044,7 +2044,7 @@ static int test_errors(void) goto out; /* try to detach "grp" from "dset_a" */ - if(H5DSdetach_scale(did,gid,0)==SUCCESS) + if(H5DSdetach_scale(did,gid,0)==SUCCEED) goto out; /* close */ @@ -2153,7 +2153,7 @@ static int test_iterators(void) goto out; /* try to iterate trough the 3rd dimension of "dset_a", return error */ - if (H5DSiterate_scales(did,3,NULL,verifiy_scale,NULL)==SUCCESS) + if (H5DSiterate_scales(did,3,NULL,verifiy_scale,NULL)==SUCCEED) goto out; /* close */ @@ -2212,7 +2212,7 @@ static int test_iterators(void) goto out; /* try to iterate, return error */ - if (H5DSiterate_scales(gid,0,NULL,verifiy_scale,NULL)==SUCCESS) + if (H5DSiterate_scales(gid,0,NULL,verifiy_scale,NULL)==SUCCEED) goto out; /* close */ @@ -2237,7 +2237,7 @@ static int test_iterators(void) goto out; /* iterate */ - if (H5DSiterate_scales(did,0,NULL,op_bogus,NULL)==SUCCESS) + if (H5DSiterate_scales(did,0,NULL,op_bogus,NULL)==SUCCEED) goto out; /* close */ |