diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-07-18 16:58:09 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-07-18 16:58:09 (GMT) |
commit | 3a8892a0d90edb6c21c91ede18bf6b3cb2895af0 (patch) | |
tree | b07285065c820720b70e6a6135e41fd8d16021ce /java/test | |
parent | e5156823bdb90522a2800392bbf0c58d8a5e7b37 (diff) | |
download | hdf5-3a8892a0d90edb6c21c91ede18bf6b3cb2895af0.zip hdf5-3a8892a0d90edb6c21c91ede18bf6b3cb2895af0.tar.gz hdf5-3a8892a0d90edb6c21c91ede18bf6b3cb2895af0.tar.bz2 |
Adjust error handling
Diffstat (limited to 'java/test')
-rw-r--r-- | java/test/TestH5Lcreate.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/java/test/TestH5Lcreate.java b/java/test/TestH5Lcreate.java index 646babc..06c4ac1 100644 --- a/java/test/TestH5Lcreate.java +++ b/java/test/TestH5Lcreate.java @@ -147,6 +147,13 @@ public class TestH5Lcreate { H5.H5Pset_link_creation_order(H5fcpl, HDF5Constants.H5P_CRT_ORDER_TRACKED+HDF5Constants.H5P_CRT_ORDER_INDEXED); H5fid = H5.H5Fcreate(H5_FILE, HDF5Constants.H5F_ACC_TRUNC, H5fcpl, HDF5Constants.H5P_DEFAULT); + } + catch (Throwable err) { + err.printStackTrace(); + fail("TestH5L.createH5file: " + err); + } + assertTrue("TestH5L.createH5file: H5.H5Fcreate: ",H5fid > 0); + try { H5dsid = H5.H5Screate_simple(2, H5dims, null); H5did1 = _createDataset(H5fid, H5dsid, "DS1", HDF5Constants.H5P_DEFAULT); H5gid = _createGroup(H5fid, "/G1"); @@ -154,9 +161,8 @@ public class TestH5Lcreate { } catch (Throwable err) { err.printStackTrace(); - fail("TestH5L.createH5file: " + err); + fail("TestH5L.createH5objs: " + err); } - assertTrue("TestH5L.createH5file: H5.H5Fcreate: ",H5fid > 0); assertTrue("TestH5L.createH5file: H5.H5Screate_simple: ",H5dsid > 0); assertTrue("TestH5L.createH5file: H5.H5Gcreate: ",H5gid > 0); |