diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-31 21:20:41 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-05-31 21:20:41 (GMT) |
commit | 85c50a468b54143a9ab54469d0cdbaa41228d2f7 (patch) | |
tree | 9b8ce2e985273ef0e2b518c597adb43228c3d100 /test/tselect.c | |
parent | cb8c548529f40149eb23028356b2ccd103cf86e7 (diff) | |
download | hdf5-85c50a468b54143a9ab54469d0cdbaa41228d2f7.zip hdf5-85c50a468b54143a9ab54469d0cdbaa41228d2f7.tar.gz hdf5-85c50a468b54143a9ab54469d0cdbaa41228d2f7.tar.bz2 |
[svn-r10833] 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/tselect.c')
-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 7586d90..e3760d8 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"); |