diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-12-01 20:38:02 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-12-01 20:38:02 (GMT) |
commit | 629cc339ebf51809c50a452dd473aafc619ae940 (patch) | |
tree | 3f1f5ccadb2b3ba3f6aefc05229deb2a4195bff3 /test/external.c | |
parent | 4c221f9e0e490df1156da7984bd270d8c1babbf0 (diff) | |
download | hdf5-629cc339ebf51809c50a452dd473aafc619ae940.zip hdf5-629cc339ebf51809c50a452dd473aafc619ae940.tar.gz hdf5-629cc339ebf51809c50a452dd473aafc619ae940.tar.bz2 |
[svn-r16144] Removed the check of H5Dset_extent for the space to be chunked, since external datasets can be extended
Tested: windows, linux
Diffstat (limited to 'test/external.c')
-rw-r--r-- | test/external.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/external.c b/test/external.c index 35d31dc..25d465c 100644 --- a/test/external.c +++ b/test/external.c @@ -784,6 +784,17 @@ test_3 (hid_t fapl) } /* end if */ } /* end for */ + /* Extend the dataset by another 100 elements */ + if(H5Dset_extent(dset, &max_size) < 0) goto error; + if(H5Sclose(file_space) < 0) goto error; + if((file_space = H5Dget_space(dset)) < 0) goto error; + + /* Write second half of dataset */ + for(i = 0; i < hs_count; i++) + whole[i] = 100 + i; + if(H5Sselect_hyperslab(file_space, H5S_SELECT_SET, &hs_start, NULL, &hs_count, NULL) < 0) goto error; + if(H5Dwrite(dset, H5T_NATIVE_INT, mem_space, file_space, H5P_DEFAULT, whole) < 0) goto error; + if(H5Dclose(dset) < 0) goto error; if(H5Pclose(dcpl) < 0) goto error; |