From 43017c3d9aa1f4be6be58e9ace723f7990c816a3 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 12 Apr 2000 17:02:26 -0500 Subject: [svn-r2132] Tested H5Screate_simple & H5Sset_extent_simple disallowing size 0 dimensions without corresponding unlimited dimension. --- test/th5s.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/th5s.c b/test/th5s.c index e26fe9a..46ddf2b 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -170,6 +170,20 @@ test_h5s_basic(void) VERIFY(dset1, FAIL, "H5Dopen"); ret = H5Fclose(fid1); CHECK_I(ret, "H5Fclose"); + + /* Verify that incorrect dimensions don't work */ + dims1[0]=0; + sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL); + VERIFY(sid1, FAIL, "H5Screate_simple"); + + 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"); } /* test_h5s_basic() */ /**************************************************************** -- cgit v0.12