diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-06-26 15:50:13 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-06-26 15:50:13 (GMT) |
commit | a8011f4136e44fd4ce9b7aa137f421f114ab9ebd (patch) | |
tree | f26085d04ee90c0623eaf2f80de0d3431565197f /test | |
parent | a0dbf6ec46a6700a0ffcb00b44bc0c791f60a15c (diff) | |
download | hdf5-a8011f4136e44fd4ce9b7aa137f421f114ab9ebd.zip hdf5-a8011f4136e44fd4ce9b7aa137f421f114ab9ebd.tar.gz hdf5-a8011f4136e44fd4ce9b7aa137f421f114ab9ebd.tar.bz2 |
[svn-r15283] Fixed bug 1155, added fillval.c back to windows test file, other minor cleanup in fillval.c.
Tested: kagiso (parallel), smirom, linew
Diffstat (limited to 'test')
-rw-r--r-- | test/fillval.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/fillval.c b/test/fillval.c index 29f37b4..e92872a 100644 --- a/test/fillval.c +++ b/test/fillval.c @@ -1513,7 +1513,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, /* Initialize dataspace & hyperslab info */ for(i = 0, nelmts = 1; i < 5; i++) { - hs_size[i] = start_size[i] / 2; + hs_size[i] = (start_size[i] + 1) / 2; hs_offset[i] = 0; hs_stride[i] = 2; nelmts *= hs_size[i]; @@ -1532,7 +1532,7 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, /* Select elements within file dataspace */ if(H5Sselect_hyperslab(fspace, H5S_SELECT_SET, hs_offset, hs_stride, hs_size, NULL) < 0) TEST_ERROR - /* Write to all odd data locations */ + /* Write to all even data locations */ if(H5Dwrite(dset, dtype, mspace, fspace, H5P_DEFAULT, buf) < 0) TEST_ERROR /* Close memory dataspace */ @@ -1721,6 +1721,9 @@ test_extend_cases(hid_t file, hid_t _dcpl, const char *dset_name, /* Verify the element read in is the value written out */ if(verify_rtn((unsigned)__LINE__, hs_offset, val_rd, buf) < 0) TEST_ERROR + + /* Set the element back to fillval */ + if(H5Dwrite(dset, dtype, mspace, fspace, H5P_DEFAULT, fillval) < 0) TEST_ERROR /* Release any VL components */ if(H5Dvlen_reclaim(dtype, mspace, H5P_DEFAULT, val_rd) < 0) TEST_ERROR |