summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-08-05 19:43:34 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-08-05 19:43:34 (GMT)
commit97569890f896c75088922f97f81f50a4f6321e6a (patch)
tree99a26c8f54997f395e5bb24e00bddc471a02a866 /hl
parent5f232b2c91b9eb7f365da3aeb923b3bb4cbab19f (diff)
downloadhdf5-97569890f896c75088922f97f81f50a4f6321e6a.zip
hdf5-97569890f896c75088922f97f81f50a4f6321e6a.tar.gz
hdf5-97569890f896c75088922f97f81f50a4f6321e6a.tar.bz2
[svn-r21175] Release datatypes created locally
Diffstat (limited to 'hl')
-rw-r--r--hl/c++/test/ptableTest.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/hl/c++/test/ptableTest.cpp b/hl/c++/test/ptableTest.cpp
index 9c48f77..929058d 100644
--- a/hl/c++/test/ptableTest.cpp
+++ b/hl/c++/test/ptableTest.cpp
@@ -74,6 +74,7 @@ int main(void)
return -1;
}
+
int BasicTest()
{
herr_t err;
@@ -182,9 +183,17 @@ int TestCompoundDatatype()
goto out;
PASSED();
+
+ H5Tclose(dtypeID);
return 0;
out:
+
+ H5E_BEGIN_TRY {
+ H5Tclose(dtypeID);
+ } H5E_END_TRY;
+
+
H5_FAILED();
return 1;
}
@@ -514,10 +523,19 @@ int SystemTest()
if(ct1[1].b != ct2[2].g.b)
goto out;
+ H5Tclose(dtypeID1);
+ H5Tclose(dtypeID2);
+
PASSED();
return 0;
out:
+
+ H5E_BEGIN_TRY {
+ H5Tclose(dtypeID1);
+ H5Tclose(dtypeID2);
+ } H5E_END_TRY;
+
H5_FAILED();
return 1;
}