From 73dafaf54c767714983ef778bd4d25f6a21eb3a1 Mon Sep 17 00:00:00 2001 From: Christian Chilan Date: Wed, 17 Jan 2007 15:48:58 -0500 Subject: [svn-r13148] Added a test to verify that current dataspace dimensions cannot be H5S_UNLIMITED. --- test/th5s.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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"); -- cgit v0.12