Primary change is HDFFV-11212 - new refs and JNI (#372)
* OESS-98 convert plugin option to FetchContent, add tests * Fixes for pkcfg files because of plugin option * OESS-98 fix tools test for plugins * Keep doxygen comments under 100 chars long - format hint * Whitespace * HDFFV-11144 - Reclassify CMake messages * HDFFV-11099/11100 added help text * Reworked switch statement to compare string instead * Fix typo * Update CDash mode * Correct name of threadsafe * Correct option name * Undo accidental commit * Note LLVM 10 to 11 format default changes * Update format plugin * Undo clang-format version 11 changes * One more correction * Update supported platforms * Revert whitespace changes * Correct whitespace * Changes from PR#3 * HDFFV-11213 added option to control gcc10 warnings diagnostics * HDFFV-11212 Use the new references correctly in JNI utility and tests * format source * Fix typo * Add new test file * HDFFV-11212 - update test and remove unused arg * Minor non-space formatting changes * Use H5I_INVALID_ID instead of "-1" * source formatting * add missing testfile, update jni function * Undo commit of debug code * remove mislocated file * Fix h5repack test for handling of fapls and id close * Update h5diff test files usage text * HDFFV-11212 add new ref tests for JNI export dataset * src format update * Remove blank line typo * src format typo * long double requires %Lg * Another long double foramt specifer S.B. %Lg * issue with t128bit test * Windows issue with h5dump and type. * Fix review issues * refactor function nesting and fix error checks * format fixes * Remove untested functions and javadoc quiet comments * Restore TRY block. * Change string append errors to memory exception * revert to H5_JNI_FATAL_ERROR - support functions need work * Add assertion error for h5util functions * remove duplicate function * format fix * Revert HD function error handling * Update copyright comments
This commit is contained in:
@@ -39,13 +39,13 @@ public class TestH5D {
|
||||
private static final int DIM_X = 4;
|
||||
private static final int DIM_Y = 6;
|
||||
private static final int RANK = 2;
|
||||
long H5fid = -1;
|
||||
long H5faplid = -1;
|
||||
long H5dsid = -1;
|
||||
long H5dtid = -1;
|
||||
long H5did = -1;
|
||||
long H5did0 = -1;
|
||||
long H5dcpl_id = -1;
|
||||
long H5fid = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5faplid = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5dsid = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5dtid = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5did = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5did0 = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5dcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long[] H5dims = { DIM_X, DIM_Y };
|
||||
|
||||
// Values for the status of space allocation
|
||||
@@ -195,9 +195,9 @@ public class TestH5D {
|
||||
try {H5.H5Fclose(H5fid);} catch (Exception ex) {}
|
||||
}
|
||||
|
||||
private final void _openH5file(String name, long dapl) {
|
||||
private final void _openH5file(String filename, String dsetname, long dapl) {
|
||||
try {
|
||||
H5fid = H5.H5Fopen(H5_FILE,
|
||||
H5fid = H5.H5Fopen(filename,
|
||||
HDF5Constants.H5F_ACC_RDWR, HDF5Constants.H5P_DEFAULT);
|
||||
}
|
||||
catch (Throwable err) {
|
||||
@@ -206,7 +206,7 @@ public class TestH5D {
|
||||
}
|
||||
assertTrue("TestH5D._openH5file: H5.H5Fopen: ",H5fid >= 0);
|
||||
try {
|
||||
H5did = H5.H5Dopen(H5fid, name, dapl);
|
||||
H5did = H5.H5Dopen(H5fid, dsetname, dapl);
|
||||
}
|
||||
catch (Throwable err) {
|
||||
err.printStackTrace();
|
||||
@@ -268,7 +268,7 @@ public class TestH5D {
|
||||
|
||||
@Test
|
||||
public void testH5Dcreate() {
|
||||
long dataset_id = -1;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
dataset_id = H5.H5Dcreate(H5fid, "dset",
|
||||
HDF5Constants.H5T_STD_I32BE, H5dsid,
|
||||
@@ -292,7 +292,7 @@ public class TestH5D {
|
||||
|
||||
@Test
|
||||
public void testH5Dcreate_anon() {
|
||||
long dataset_id = -1;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
dataset_id = H5.H5Dcreate_anon(H5fid, HDF5Constants.H5T_STD_I32BE,
|
||||
H5dsid, HDF5Constants.H5P_DEFAULT, HDF5Constants.H5P_DEFAULT);
|
||||
@@ -315,12 +315,12 @@ public class TestH5D {
|
||||
|
||||
@Test
|
||||
public void testH5Dopen() {
|
||||
long dataset_id = -1;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
_createDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DEFAULT);
|
||||
|
||||
try {
|
||||
H5.H5Dclose(H5did);
|
||||
H5did = -1;
|
||||
H5did = HDF5Constants.H5I_INVALID_HID;
|
||||
dataset_id = H5.H5Dopen(H5fid, "dset", HDF5Constants.H5P_DEFAULT);
|
||||
}
|
||||
catch (Exception err) {
|
||||
@@ -388,8 +388,8 @@ public class TestH5D {
|
||||
|
||||
@Test
|
||||
public void testH5Dget_access_plist() {
|
||||
long dapl_id = -1;
|
||||
long test_dapl_id = -1;
|
||||
long dapl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long test_dapl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int[] mdc_nelmts1 = {0};
|
||||
int[] mdc_nelmts2 = {0};
|
||||
long[] rdcc_nelmts1 = {0};
|
||||
@@ -500,7 +500,7 @@ public class TestH5D {
|
||||
|
||||
@Test(expected = HDF5LibraryException.class)
|
||||
public void testH5Dget_space_closed() throws Throwable {
|
||||
long dataset_id = -1;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
dataset_id = H5.H5Dcreate(H5fid, "dset",
|
||||
HDF5Constants.H5T_STD_I32BE, H5dsid,
|
||||
@@ -518,7 +518,7 @@ public class TestH5D {
|
||||
|
||||
@Test
|
||||
public void testH5Dget_space() {
|
||||
long dataspace_id = -1;
|
||||
long dataspace_id = HDF5Constants.H5I_INVALID_HID;
|
||||
_createDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DEFAULT);
|
||||
|
||||
try {
|
||||
@@ -542,7 +542,7 @@ public class TestH5D {
|
||||
|
||||
@Test(expected = HDF5LibraryException.class)
|
||||
public void testH5Dget_type_closed() throws Throwable {
|
||||
long dataset_id = -1;
|
||||
long dataset_id = HDF5Constants.H5I_INVALID_HID;
|
||||
try {
|
||||
dataset_id = H5.H5Dcreate(H5fid, "dset",
|
||||
HDF5Constants.H5T_STD_I32BE, H5dsid,
|
||||
@@ -560,7 +560,7 @@ public class TestH5D {
|
||||
|
||||
@Test
|
||||
public void testH5Dget_type() {
|
||||
long datatype_id = -1;
|
||||
long datatype_id = HDF5Constants.H5I_INVALID_HID;
|
||||
_createDataset(H5fid, H5dsid, "dset", HDF5Constants.H5P_DEFAULT);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user