mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[svn-r30250] Correct position of finally block for test
This commit is contained in:
parent
7e49cb802a
commit
f72d425d9c
@ -70,12 +70,12 @@ public class TestH5PL {
|
||||
|
||||
@Test
|
||||
public void TestH5PLdlopen() {
|
||||
try {
|
||||
long file_id = -1;
|
||||
long filespace_id = -1;
|
||||
long dataset_id = -1;
|
||||
long fapl_id = -1;
|
||||
long dcpl_id = -1;
|
||||
try {
|
||||
int[] cd_values = {9, 0, 0, 0};
|
||||
int[] libversion = {0, 0, 0};
|
||||
long[] dims = { DIM_X, DIM_Y };
|
||||
@ -163,6 +163,11 @@ public class TestH5PL {
|
||||
e.printStackTrace();
|
||||
fail("TestH5PLdlopen H5Dwrite:" + e);
|
||||
}
|
||||
}
|
||||
catch (Throwable err) {
|
||||
err.printStackTrace();
|
||||
fail("TestH5PLdlopen " + err);
|
||||
}
|
||||
finally {
|
||||
// End access to the dataset and release resources used by it.
|
||||
if (dcpl_id >= 0)
|
||||
@ -175,9 +180,4 @@ public class TestH5PL {
|
||||
try {H5.H5Fclose(file_id);} catch (Throwable err) {}
|
||||
}
|
||||
}
|
||||
catch (Throwable err) {
|
||||
err.printStackTrace();
|
||||
fail("TestH5PLdlopen " + err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user