diff options
| author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2018-01-05 16:49:43 (GMT) |
|---|---|---|
| committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2018-01-05 16:49:43 (GMT) |
| commit | beaca3dc2acf2de5f9396b2180ff3415d11056be (patch) | |
| tree | 0ffbf4e55de96c3b6e7c1e7034f0f17f0e5ccb83 /java/test | |
| parent | 3b02f2d03f5c349e341a776af488dfa033902f0a (diff) | |
| parent | c971c366a95361cfb53e61f58f02c4caa58cd1f8 (diff) | |
| download | hdf5-beaca3dc2acf2de5f9396b2180ff3415d11056be.zip hdf5-beaca3dc2acf2de5f9396b2180ff3415d11056be.tar.gz hdf5-beaca3dc2acf2de5f9396b2180ff3415d11056be.tar.bz2 | |
Merge pull request #845 in HDFFV/hdf5 from ~BRTNFLD/hdf5_msb:hdf5_1_10 to hdf5_1_10
* commit 'c971c366a95361cfb53e61f58f02c4caa58cd1f8': (32 commits)
reverted changes from sync
Snapshot version 1.11 release 1
Fix valgrind issues
HDFFV-9724 init var to null
HDFFV-9724 add valgrind ENV
Fix memory leak due to addition of FORMAT check loop
HDFFV-9724 prefix of 0 length should be null value
HDFFV-9724 Corrected files and verified tests
Add library INTERFACE and MPI to tools
Increase maximum number of retries for h5watch tests.
Revert "Merge pull request #826 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop"
Add HD prefix
HDFFV-9724 Remove VDS file cache functionality
Removed incorrect MPI text
Par example needs to link with mpi libs
Because of MPI requirements in library ALWAYS add include path
Cleanup comments and if() in TRY blocks
Fix -- HDFFV-10363 Fortran compilation fails for xlf and cmake builds
Skip test if 1.6 API
HDFFV-9724 Add ENV VAR to vds test
...
Diffstat (limited to 'java/test')
| -rw-r--r-- | java/test/JUnit-interface.txt | 5 | ||||
| -rw-r--r-- | java/test/TestH5Pvirtual.java | 33 |
2 files changed, 37 insertions, 1 deletions
diff --git a/java/test/JUnit-interface.txt b/java/test/JUnit-interface.txt index 6d2754f..91ea286 100644 --- a/java/test/JUnit-interface.txt +++ b/java/test/JUnit-interface.txt @@ -534,11 +534,14 @@ JUnit version 4.11 .testH5Pget_source_datasetname .testH5Pvirtual_storage .testH5Pget_selection_source_dataset +.testH5Pget_virtual_prefix .testH5Pget_source_filename .testH5Pset_get_virtual_printf_gap .testH5Pget_virtual_count +.testH5Pset_virtual_prefix .testH5Pset_get_virtual_view .testH5Pget_mapping_parameters +.testH5Pset_virtual_prefix_null .testH5P_genprop_basic_class .testH5P_genprop_class_iter .testH5P_genprop_basic_class_prop @@ -644,7 +647,7 @@ JUnit version 4.11 Time: XXXX -OK (642 tests) +OK (645 tests) HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs): #000: (file name) line (number) in H5Fopen(): can't set access and transfer property lists diff --git a/java/test/TestH5Pvirtual.java b/java/test/TestH5Pvirtual.java index 40cfbac..ff2e4dc 100644 --- a/java/test/TestH5Pvirtual.java +++ b/java/test/TestH5Pvirtual.java @@ -429,4 +429,37 @@ public class TestH5Pvirtual { try {H5.H5Dclose(H5did);} catch (Exception ex) {} } } + + @Test + public void testH5Pset_virtual_prefix() { + String prefix = "tmp"; + try { + H5.H5Pset_virtual_prefix(H5dapl_id, prefix); + } + catch (Throwable err) { + err.printStackTrace(); + fail("H5Pset_virtual_prefix: " + err); + } + } + + @Test(expected = NullPointerException.class) + public void testH5Pset_virtual_prefix_null() throws Throwable{ + H5.H5Pset_virtual_prefix(H5dapl_id, null); + } + + @Test + public void testH5Pget_virtual_prefix() { + String prefix = "tmp"; + String pre = ""; + + try { + H5.H5Pset_virtual_prefix(H5dapl_id, prefix); + pre = H5.H5Pget_virtual_prefix(H5dapl_id); + } + catch (Throwable err) { + err.printStackTrace(); + fail("H5Pget_virtual_prefix: " + err); + } + assertTrue("The prefix: ", prefix.equals(pre)); + } } |
