mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r13148] Added a test to verify that current dataspace dimensions cannot be H5S_UNLIMITED.
This commit is contained in:
parent
6328f51d48
commit
73dafaf54c
15
test/th5s.c
15
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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user