summaryrefslogtreecommitdiffstats
path: root/java/test/TestH5E.java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-05-22 13:53:14 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-05-22 13:53:14 (GMT)
commitf4c33600ab91e0511898d2bd3a5473aaf7dcd2f7 (patch)
tree31c2106d670d958e1588ce11f02b65788cb8d000 /java/test/TestH5E.java
parent73d7f7e7d37b869ce9c39cc8e648ef50d563fc93 (diff)
parent926260763940c77cf8f94807823765a3624fa29d (diff)
downloadhdf5-f4c33600ab91e0511898d2bd3a5473aaf7dcd2f7.zip
hdf5-f4c33600ab91e0511898d2bd3a5473aaf7dcd2f7.tar.gz
hdf5-f4c33600ab91e0511898d2bd3a5473aaf7dcd2f7.tar.bz2
Merge pull request #1066 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '926260763940c77cf8f94807823765a3624fa29d': HDFFV-9739 fix copy testfiles command HDFFV-9739 remove obsolete test files HDFFV-9739 dup test file for concurrent tests HDFFV-9739 Fix autotools script HDFFV-9739 Change autotools test scripts Fix typo HDFFV-9739 Update test reference Update current windows test machines HDFFV-9739 Grab err number before API call HDFFV-9739 Add release note Adjust test names for concurrent tests Fix soversion HDFFV-9739 Fix copy name HDFFV-9739 factor out tests into separate JUnit Fix MPI on Windows by adding MPI include folder
Diffstat (limited to 'java/test/TestH5E.java')
-rw-r--r--java/test/TestH5E.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/java/test/TestH5E.java b/java/test/TestH5E.java
index d1f50cc..656069a 100644
--- a/java/test/TestH5E.java
+++ b/java/test/TestH5E.java
@@ -78,14 +78,15 @@ public class TestH5E {
H5.H5Fopen("test", 0, 1);
}
catch (HDF5LibraryException hdferr) {
+ long errnum = hdferr.getMajorErrorNumber();
int[] error_msg_type = { HDF5Constants.H5E_MAJOR };
String msg = null;
try {
- msg = H5.H5Eget_msg(hdferr.getMajorErrorNumber(), error_msg_type);
+ msg = H5.H5Eget_msg(errnum, error_msg_type);
}
catch (Throwable err) {
err.printStackTrace();
- fail("H5.H5Eget_msg: " + err);
+ fail("H5.H5Eget_msg(Throwable): " + err);
}
assertNotNull("H5.H5Eget_msg: " + msg, msg);
assertEquals("H5.H5Eget_msg: ", "Object atom", msg);
@@ -93,7 +94,7 @@ public class TestH5E {
}
catch (Throwable err) {
err.printStackTrace();
- fail("H5.H5Eget_msg: " + err);
+ fail("H5.H5Eget_msg(Other): " + err);
}
}
@@ -103,10 +104,11 @@ public class TestH5E {
H5.H5Fopen("test", 0, 1);
}
catch (HDF5LibraryException hdferr) {
+ long errnum = hdferr.getMinorErrorNumber();
int[] error_msg_type = { HDF5Constants.H5E_MINOR };
String msg = null;
try {
- msg = H5.H5Eget_msg(hdferr.getMinorErrorNumber(), error_msg_type);
+ msg = H5.H5Eget_msg(errnum, error_msg_type);
}
catch (Throwable err) {
err.printStackTrace();