diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-27 20:28:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-27 20:28:27 (GMT) |
commit | 2c93a80648a72fd19d13c3c014ef998dc1f88f8f (patch) | |
tree | 545dda6a2ce07309b440397baa189bb10e70bc3f /test/tmisc.c | |
parent | 0ee1ca5c204516f07f71476906218850a67425a3 (diff) | |
download | hdf5-2c93a80648a72fd19d13c3c014ef998dc1f88f8f.zip hdf5-2c93a80648a72fd19d13c3c014ef998dc1f88f8f.tar.gz hdf5-2c93a80648a72fd19d13c3c014ef998dc1f88f8f.tar.bz2 |
[svn-r14160] Description:
Make H5Topen versioned, and add regression test for H5Topen1.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
AIX/32 5.3 (copper) w/FORTRAN, w/parallel, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'test/tmisc.c')
-rw-r--r-- | test/tmisc.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/test/tmisc.c b/test/tmisc.c index 7882120..4656afa 100644 --- a/test/tmisc.c +++ b/test/tmisc.c @@ -2314,8 +2314,8 @@ verify_file(const char *name, hsize_t blk_size, unsigned check_new_data) verify_dataset(fid,MISC13_DSET3_NAME); /* Open the named datatype in the root group */ - tid = H5Topen(fid, MISC13_DTYPE_NAME); - CHECK(tid, FAIL, "H5Topen"); + tid = H5Topen2(fid, MISC13_DTYPE_NAME, H5P_DEFAULT); + CHECK(tid, FAIL, "H5Topen2"); /* Verify the type is correct */ VERIFY(H5Tequal(tid,H5T_NATIVE_INT), TRUE, "H5Tequal"); @@ -2335,8 +2335,8 @@ verify_file(const char *name, hsize_t blk_size, unsigned check_new_data) verify_dataset(gid,MISC13_DSET2_NAME); /* Open the named datatype in the first group */ - tid = H5Topen(gid,MISC13_DTYPE_NAME); - CHECK(tid, FAIL, "H5Topen"); + tid = H5Topen2(gid,MISC13_DTYPE_NAME, H5P_DEFAULT); + CHECK(tid, FAIL, "H5Topen2"); /* Verify the type is correct */ VERIFY(H5Tequal(tid,H5T_NATIVE_INT), TRUE, "H5Tequal"); @@ -3717,7 +3717,7 @@ test_misc22(void) CHECK(ret, FAIL, "H5Pclose"); dsid = H5Dopen(fid, MISC22_DSET_NAME); - CHECK(dsid, FAIL, "H5Topen"); + CHECK(dsid, FAIL, "H5Dopen"); dcpl2 = H5Dget_create_plist(dsid); CHECK(dcpl2, FAIL, "H5Dget_create_plist"); @@ -4089,14 +4089,14 @@ test_misc24(void) VERIFY(tmp_id, FAIL, "H5Dopen"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_GROUP_NAME); + tmp_id = H5Topen2(file_id, MISC24_GROUP_NAME, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_GROUP_LINK); + tmp_id = H5Topen2(file_id, MISC24_GROUP_LINK, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); H5E_BEGIN_TRY { tmp_id = H5Gopen2(file_id, MISC24_DATASET_NAME, H5P_DEFAULT); @@ -4109,14 +4109,14 @@ test_misc24(void) VERIFY(tmp_id, FAIL, "H5Gopen2"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_DATASET_NAME); + tmp_id = H5Topen2(file_id, MISC24_DATASET_NAME, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_DATASET_LINK); + tmp_id = H5Topen2(file_id, MISC24_DATASET_LINK, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); H5E_BEGIN_TRY { tmp_id = H5Gopen2(file_id, MISC24_DATATYPE_NAME, H5P_DEFAULT); @@ -4154,14 +4154,14 @@ test_misc24(void) VERIFY(tmp_id, FAIL, "H5Dopen"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_GROUP_NAME); + tmp_id = H5Topen2(file_id, MISC24_GROUP_NAME, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_GROUP_LINK); + tmp_id = H5Topen2(file_id, MISC24_GROUP_LINK, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); ret = H5Gclose(group_id); CHECK(ret, FAIL, "H5Gclose"); @@ -4181,21 +4181,21 @@ test_misc24(void) VERIFY(tmp_id, FAIL, "H5Gopen2"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_DATASET_NAME); + tmp_id = H5Topen2(file_id, MISC24_DATASET_NAME, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); H5E_BEGIN_TRY { - tmp_id = H5Topen(file_id, MISC24_DATASET_LINK); + tmp_id = H5Topen2(file_id, MISC24_DATASET_LINK, H5P_DEFAULT); } H5E_END_TRY; - VERIFY(tmp_id, FAIL, "H5Topen"); + VERIFY(tmp_id, FAIL, "H5Topen2"); ret = H5Dclose(dset_id); CHECK(ret, FAIL, "H5Dclose"); /* Open named datatype */ - type_id = H5Topen(file_id, MISC24_DATATYPE_NAME); - CHECK(ret, FAIL, "H5Topen"); + type_id = H5Topen2(file_id, MISC24_DATATYPE_NAME, H5P_DEFAULT); + CHECK(ret, FAIL, "H5Topen2"); H5E_BEGIN_TRY { tmp_id = H5Gopen2(file_id, MISC24_DATATYPE_NAME, H5P_DEFAULT); |