diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-12-21 04:41:00 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:21 (GMT) |
commit | 53e62bcbeba14c2b09f61ac35e9d74447fa2b8a5 (patch) | |
tree | 80e026bf6b7367646f8cfb675b3d7b33180b62d1 /test/tvltypes.c | |
parent | ba9f12b6d866417ad947562f3865cabd402199b9 (diff) | |
download | hdf5-53e62bcbeba14c2b09f61ac35e9d74447fa2b8a5.zip hdf5-53e62bcbeba14c2b09f61ac35e9d74447fa2b8a5.tar.gz hdf5-53e62bcbeba14c2b09f61ac35e9d74447fa2b8a5.tar.bz2 |
Refactor H5Dvlen_get_buf_size to use optional dataset operation, with generic fallback for VOL connectors that don't implement operation
Diffstat (limited to 'test/tvltypes.c')
-rw-r--r-- | test/tvltypes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tvltypes.c b/test/tvltypes.c index acfd0a2..a6ed60e 100644 --- a/test/tvltypes.c +++ b/test/tvltypes.c @@ -465,15 +465,15 @@ test_vltypes_vlen_atomic(void) ret = H5Dvlen_get_buf_size(dataset, tid1, sid1, &size); CHECK(ret, FAIL, "H5Dvlen_get_buf_size"); + /* 10 elements allocated = 1 + 2 + 3 + 4 elements for each array position */ + VERIFY(size,((SPACE1_DIM1*(SPACE1_DIM1+1))/2)*sizeof(unsigned int),"H5Dvlen_get_buf_size"); + /* Try to call H5Dvlen_get_buf with bad dataspace */ H5E_BEGIN_TRY { ret = H5Dvlen_get_buf_size(dataset, tid1, sid2, &size); } H5E_END_TRY VERIFY(ret, FAIL, "H5Dvlen_get_buf_size"); - /* 10 elements allocated = 1 + 2 + 3 + 4 elements for each array position */ - VERIFY(size,((SPACE1_DIM1*(SPACE1_DIM1+1))/2)*sizeof(unsigned int),"H5Dvlen_get_buf_size"); - /* Read dataset from disk */ ret=H5Dread(dataset,tid1,H5S_ALL,H5S_ALL,xfer_pid,rdata); CHECK(ret, FAIL, "H5Dread"); |