diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-07-28 19:41:52 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-07-28 19:41:52 (GMT) |
commit | da2ec6163d4a8f76ef9c32518b5a0b5810f2d63f (patch) | |
tree | d8fc91b419d6597a0d1a29572629f5efdcd094f0 /java/test | |
parent | a7d74160d043310d3819692c0aff5074bf466b1a (diff) | |
download | hdf5-da2ec6163d4a8f76ef9c32518b5a0b5810f2d63f.zip hdf5-da2ec6163d4a8f76ef9c32518b5a0b5810f2d63f.tar.gz hdf5-da2ec6163d4a8f76ef9c32518b5a0b5810f2d63f.tar.bz2 |
Update libvers usage
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/TestH5Fparams.java | 2 | ||||
-rw-r--r-- | java/test/TestH5P.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/java/test/TestH5Fparams.java b/java/test/TestH5Fparams.java index 40cbe4b..6b541c6 100644 --- a/java/test/TestH5Fparams.java +++ b/java/test/TestH5Fparams.java @@ -244,7 +244,7 @@ public class TestH5Fparams { catch (Throwable err) { fail("H5.H5Fcreate: " + err); } - H5.H5Fset_libver_bounds(fid, HDF5Constants.H5F_LIBVER_V110, HDF5Constants.H5F_LIBVER_V110+1); + H5.H5Fset_libver_bounds(fid, HDF5Constants.H5F_LIBVER_LATEST, HDF5Constants.H5F_LIBVER_LATEST+1); } finally { try {H5.H5Fclose(fid);} catch (Exception ex) {} diff --git a/java/test/TestH5P.java b/java/test/TestH5P.java index e46ed48..a85405b 100644 --- a/java/test/TestH5P.java +++ b/java/test/TestH5P.java @@ -209,12 +209,12 @@ public class TestH5P { @Test(expected = HDF5FunctionArgumentException.class) public void testH5Pset_libver_bounds_invalidlow() throws Throwable { - H5.H5Pset_libver_bounds(fapl_id, 5, HDF5Constants.H5F_LIBVER_LATEST); + H5.H5Pset_libver_bounds(fapl_id, HDF5Constants.H5F_LIBVER_EARLIEST-1, HDF5Constants.H5F_LIBVER_LATEST); } @Test(expected = HDF5FunctionArgumentException.class) public void testH5Pset_libver_bounds_invalidhigh() throws Throwable { - H5.H5Pset_libver_bounds(fapl_id, HDF5Constants.H5F_LIBVER_V112, HDF5Constants.H5F_LIBVER_V112+1); + H5.H5Pset_libver_bounds(fapl_id, HDF5Constants.H5F_LIBVER_LATEST, HDF5Constants.H5F_LIBVER_LATEST+1); } @Test |