summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c15
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");