diff options
author | Christian Chilan <chilan@hdfgroup.org> | 2007-01-17 20:48:58 (GMT) |
---|---|---|
committer | Christian Chilan <chilan@hdfgroup.org> | 2007-01-17 20:48:58 (GMT) |
commit | 73dafaf54c767714983ef778bd4d25f6a21eb3a1 (patch) | |
tree | 56bcdec17670492bad8c84abbcba4d1834063735 | |
parent | 6328f51d48a8e7ea1337640049b19f4ba03e7389 (diff) | |
download | hdf5-73dafaf54c767714983ef778bd4d25f6a21eb3a1.zip hdf5-73dafaf54c767714983ef778bd4d25f6a21eb3a1.tar.gz hdf5-73dafaf54c767714983ef778bd4d25f6a21eb3a1.tar.bz2 |
[svn-r13148] Added a test to verify that current dataspace dimensions cannot be H5S_UNLIMITED.
-rw-r--r-- | test/th5s.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/th5s.c b/test/th5s.c index 359f023..07434f7 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -202,6 +202,21 @@ test_h5s_basic(void) sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL); VERIFY(sid1, FAIL, "H5Screate_simple"); + dims1[0] = H5S_UNLIMITED; + sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL); + VERIFY(sid1, FAIL, "H5Screate_simple"); + + dims1[0]=0; + sid1 = H5Screate(H5S_SIMPLE); + CHECK(sid1, FAIL, "H5Screate"); + + ret = H5Sset_extent_simple(sid1,SPACE1_RANK,dims1,NULL); + VERIFY(ret, FAIL, "H5Sset_extent_simple"); + + ret = H5Sclose(sid1); + CHECK_I(ret, "H5Sclose"); + + dims1[0] = H5S_UNLIMITED; sid1 = H5Screate(H5S_SIMPLE); CHECK(sid1, FAIL, "H5Screate"); |