diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-31 21:20:36 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-31 21:20:36 (GMT) |
commit | 78bcbe927f075988d8517c7cb7436ba318cf14c8 (patch) | |
tree | ef4cc3211facf42e2dbfa11637bec355369e8a4f /test | |
parent | 48e9fa1ad980ab87b06a0d7cc5752177217375cd (diff) | |
download | hdf5-78bcbe927f075988d8517c7cb7436ba318cf14c8.zip hdf5-78bcbe927f075988d8517c7cb7436ba318cf14c8.tar.gz hdf5-78bcbe927f075988d8517c7cb7436ba318cf14c8.tar.bz2 |
[svn-r10832] Purpose:
Bug fix
Description:
Fix problems with hyperslab operations with hyperslabs that have count == 0
or block == 0 values. (bugzilla #294)
Solution:
Detect zero sized selections and translate into appropriate action on the
current hyperslab, rather than go through the formality of generating span
trees with zero-sized spans, etc.
Platforms tested:
FreeBSD 4.11 (sleipnir) w/parallel
Too minor to require h5committest
Diffstat (limited to 'test')
-rw-r--r-- | test/tselect.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tselect.c b/test/tselect.c index 3f2083b..1801e0c 100644 --- a/test/tselect.c +++ b/test/tselect.c @@ -281,6 +281,14 @@ test_select_hyper(hid_t xfer_plist) ret = H5Sselect_hyperslab(sid2,H5S_SELECT_SET,start,stride,count,block); CHECK(ret, FAIL, "H5Sselect_hyperslab"); + /* Select 0x26 hyperslab to OR into current selection (should be a NOOP) */ + start[0]=0; start[1]=0; + stride[0]=1; stride[1]=1; + count[0]=0; count[1]=26; + block[0]=1; block[1]=1; + ret = H5Sselect_hyperslab(sid2,H5S_SELECT_OR,start,stride,count,block); + CHECK(ret, FAIL, "H5Sselect_hyperslab"); + /* Read selection from disk */ ret=H5Dread(dataset,H5T_NATIVE_UCHAR,sid2,sid1,xfer_plist,rbuf); CHECK(ret, FAIL, "H5Dread"); |