summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-12-17 20:23:00 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-12-17 20:23:00 (GMT)
commit13a58cc0aab4382dd2582839d6bec9924b981808 (patch)
tree5c43e9f7abfbeda9092efed0cdb4f847d6598c37
parent35f88b919d0ab401a0cda45b00935eabcb9a77a4 (diff)
downloadhdf5-13a58cc0aab4382dd2582839d6bec9924b981808.zip
hdf5-13a58cc0aab4382dd2582839d6bec9924b981808.tar.gz
hdf5-13a58cc0aab4382dd2582839d6bec9924b981808.tar.bz2
Initial vol.c setup for working on H5T.
-rw-r--r--test/vol.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/vol.c b/test/vol.c
index 25dfdc2..466c949 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -787,12 +787,20 @@ static herr_t
test_basic_datatype_operation(void)
{
hid_t fid = H5I_INVALID_HID;
+ hid_t tid = H5I_INVALID_HID;
TESTING("Basic VOL datatype operations");
if ((fid = H5Fcreate(NATIVE_VOL_TEST_FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
TEST_ERROR;
+ if ((tid = H5Tcopy(H5T_NATIVE_INT)) < 0)
+ TEST_ERROR;
+
+ /* H5Tcommit */
+
+ if (H5Tclose(tid) < 0)
+ TEST_ERROR;
if (H5Fclose(fid) < 0)
TEST_ERROR;
@@ -804,6 +812,7 @@ test_basic_datatype_operation(void)
error:
H5E_BEGIN_TRY {
H5Fclose(fid);
+ H5Fclose(tid);
} H5E_END_TRY;
return FAIL;