diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-01-03 13:55:39 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-01-03 13:55:39 (GMT) |
commit | 35694d44ae9aedaeed71850222ce014606ed3572 (patch) | |
tree | def0459f6df031c609a9c83d0cebe576ccc0551e /test/th5o.c | |
parent | 23c1eb4a6cdbc6fe782c8746eb40a7e54c8a7e42 (diff) | |
download | hdf5-35694d44ae9aedaeed71850222ce014606ed3572.zip hdf5-35694d44ae9aedaeed71850222ce014606ed3572.tar.gz hdf5-35694d44ae9aedaeed71850222ce014606ed3572.tar.bz2 |
[svn-r14362] Description:
Switched from "H5P[gs]et_latest_format" to "H5P[gs]et_format_bounds".
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-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'test/th5o.c')
-rw-r--r-- | test/th5o.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/th5o.c b/test/th5o.c index d913e47..fec845d 100644 --- a/test/th5o.c +++ b/test/th5o.c @@ -581,9 +581,9 @@ test_h5o_plist(void) fapl = H5Pcreate(H5P_FILE_ACCESS); CHECK(fapl, FAIL, "H5Pcreate"); - /* Set the "use the latest version of the format" flag for creating objects in the file */ - ret = H5Pset_latest_format(fapl, TRUE); - CHECK(ret, FAIL, "H5Pset_latest_format"); + /* Set the "use the latest version of the format" bounds for creating objects in the file */ + ret = H5Pset_format_bounds(fapl, H5F_FORMAT_LATEST, H5F_FORMAT_LATEST); + CHECK(ret, FAIL, "H5Pset_format_bounds"); /* Create a new HDF5 file */ fid = H5Fcreate(TEST_FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl); @@ -796,13 +796,13 @@ test_h5o_link(void) /* Loop over using new group format */ for(new_format = FALSE; new_format <= TRUE; new_format++) { - /* Make a FAPL that uses the "use the latest version of the format" flag */ + /* Make a FAPL that uses the "use the latest version of the format" bounds */ fapl_id = H5Pcreate(H5P_FILE_ACCESS); CHECK(fapl_id, FAIL, "H5Pcreate"); - /* Set the "use the latest version of the format" flag for creating objects in the file */ - ret = H5Pset_latest_format(fapl_id, new_format); - CHECK(ret, FAIL, "H5Pset_latest_format"); + /* Set the "use the latest version of the format" bounds for creating objects in the file */ + ret = H5Pset_format_bounds(fapl_id, (new_format ? H5F_FORMAT_LATEST : H5F_FORMAT_EARLIEST), H5F_FORMAT_LATEST); + CHECK(ret, FAIL, "H5Pset_format_bounds"); /* Create a new HDF5 file */ file_id = H5Fcreate(TEST_FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_id); |