diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-01-02 18:47:37 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-01-02 18:47:37 (GMT) |
commit | ed0c468902409ae7fa8fb91c5f5a3a3093846736 (patch) | |
tree | 77aa865b65d90ccc16db21ec6f0dff19aa948069 /java/test/TestH5Fbasic.java | |
parent | f3636c573f6651a2d7666f6e80524c4a97231c57 (diff) | |
download | hdf5-ed0c468902409ae7fa8fb91c5f5a3a3093846736.zip hdf5-ed0c468902409ae7fa8fb91c5f5a3a3093846736.tar.gz hdf5-ed0c468902409ae7fa8fb91c5f5a3a3093846736.tar.bz2 |
HDFFV-10664 add check for state before set call
Diffstat (limited to 'java/test/TestH5Fbasic.java')
-rw-r--r-- | java/test/TestH5Fbasic.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/test/TestH5Fbasic.java b/java/test/TestH5Fbasic.java index 9196ea6..fff9523 100644 --- a/java/test/TestH5Fbasic.java +++ b/java/test/TestH5Fbasic.java @@ -14,6 +14,7 @@ package test; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; @@ -331,8 +332,10 @@ public class TestH5Fbasic { @Test public void testH5F_dset_no_attrs_hint() { - boolean ret_val_id = false; + boolean ret_val_id = true; try { + ret_val_id = H5.H5Fget_dset_no_attrs_hint(H5fid); + assertFalse("H5F_dset_no_attrs_hint", ret_val_id); H5.H5Fset_dset_no_attrs_hint(H5fid, true); ret_val_id = H5.H5Fget_dset_no_attrs_hint(H5fid); assertTrue("H5F_dset_no_attrs_hint", ret_val_id); |