summaryrefslogtreecommitdiffstats
path: root/test/extend.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/extend.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/extend.c')
-rw-r--r--test/extend.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/extend.c b/test/extend.c
index d1b3d0e..15f2322 100644
--- a/test/extend.c
+++ b/test/extend.c
@@ -107,7 +107,7 @@ main (void)
/* Select a hyperslab */
file_space = H5Dget_space (dataset);
assert (file_space>=0);
- status = H5Sset_hyperslab (file_space, offset, dims, NULL);
+ status = H5Sselect_hyperslab (file_space, H5S_SELECT_SET, offset, NULL, dims, NULL);
assert (status>=0);
/* Write to the hyperslab */
@@ -130,7 +130,7 @@ main (void)
offset[0] = i * NX/2;
offset[1] = j * NY/2;
assert (file_space>=0);
- status = H5Sset_hyperslab (file_space, offset, half_dims, NULL);
+ status = H5Sselect_hyperslab (file_space, H5S_SELECT_SET, offset, NULL, half_dims, NULL);
assert (status>=0);
/* Read */
@@ -155,5 +155,3 @@ main (void)
return 0;
}
-
-