summaryrefslogtreecommitdiffstats
path: root/test/chunk.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-07-06 21:01:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-07-06 21:01:59 (GMT)
commit650e88756c4d81f819141d28e9239fbb6446ed30 (patch)
treeb072d230ee7c60c7ab3548e04d291f81b8c1ceda /test/chunk.c
parent43f13aeca28a722d6436d43dcd84a59918dc0950 (diff)
downloadhdf5-650e88756c4d81f819141d28e9239fbb6446ed30.zip
hdf5-650e88756c4d81f819141d28e9239fbb6446ed30.tar.gz
hdf5-650e88756c4d81f819141d28e9239fbb6446ed30.tar.bz2
[svn-r452] Changed tests to use the new dataspace API calls. Still need to add tests for
point selections and strides.
Diffstat (limited to 'test/chunk.c')
-rw-r--r--test/chunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/chunk.c b/test/chunk.c
index 592fc73..73cb07c 100644
--- a/test/chunk.c
+++ b/test/chunk.c
@@ -214,7 +214,7 @@ test_rowmaj (int op, hsize_t cache_size, hsize_t io_size)
hs_offset[1] = j;
hs_size[1] = MIN (io_size, CH_SIZE*DS_SIZE-j);
mem_space = H5Screate_simple (2, hs_size, hs_size);
- H5Sset_hyperslab (file_space, hs_offset, hs_size, NULL);
+ H5Sselect_hyperslab (file_space, H5S_SELECT_SET, hs_offset, NULL, hs_size, NULL);
if (READ==op) {
H5Dread (dset, H5T_NATIVE_CHAR, mem_space, file_space,
@@ -274,7 +274,7 @@ test_diag (int op, hsize_t cache_size, hsize_t io_size, hsize_t offset)
hs_offset[0] = hs_offset[1] = i;
hs_size[0] = hs_size[1] = MIN (io_size, CH_SIZE*DS_SIZE-i);
mem_space = H5Screate_simple (2, hs_size, hs_size);
- H5Sset_hyperslab (file_space, hs_offset, hs_size, NULL);
+ H5Sselect_hyperslab (file_space, H5S_SELECT_SET, hs_offset, NULL, hs_size, NULL);
if (READ==op) {
H5Dread (dset, H5T_NATIVE_CHAR, mem_space, file_space,
H5P_DEFAULT, buf);