[svn-r30250] Correct position of finally block for test

This commit is contained in:
Allen Byrne 2016-08-02 10:29:43 -05:00
parent 7e49cb802a
commit f72d425d9c

View File

@ -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);
}
}
}