summaryrefslogtreecommitdiffstats
path: root/test/objcopy.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-06-12 17:55:12 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-06-12 17:55:12 (GMT)
commit8d72e5e3e0fb13cb965a5973e0bcc793a831e740 (patch)
treef76fe32d7c4de53632d562e9a49d0f3ebdd1a6ba /test/objcopy.c
parent48b0ff7724331737140ffae194cb2e741f0b668d (diff)
downloadhdf5-8d72e5e3e0fb13cb965a5973e0bcc793a831e740.zip
hdf5-8d72e5e3e0fb13cb965a5973e0bcc793a831e740.tar.gz
hdf5-8d72e5e3e0fb13cb965a5973e0bcc793a831e740.tar.bz2
Fix for HDFFV-10800 H5Ocopy failure:
The value for the H5F_LIBVER_V18 index in H5O_fill_ver_bounds[], the format version bounds array for fill value message, should be version 3 not 2.
Diffstat (limited to 'test/objcopy.c')
-rw-r--r--test/objcopy.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/objcopy.c b/test/objcopy.c
index df1c0e4..e35eea3 100644
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -2136,7 +2136,7 @@ test_copy_dataset_versionbounds(hid_t fcpl_src, hid_t fapl_src)
char src_fname[NAME_BUF_SIZE]; /* Name of source file */
char dst_fname[NAME_BUF_SIZE]; /* Name of destination file */
H5F_libver_t low, high; /* File format bounds */
- unsigned srcdset_fillversion; /* Fill version of source dataset */
+ unsigned srcdset_layoutversion; /* Layout version of source dataset */
int i, j; /* Local index variables */
H5D_t *dsetp = NULL; /* Pointer to internal dset structure */
herr_t ret; /* Generic return value */
@@ -2179,7 +2179,8 @@ test_copy_dataset_versionbounds(hid_t fcpl_src, hid_t fapl_src)
/* Get the internal dset ptr to get the fill version for verifying later */
if ((dsetp = (H5D_t *)H5VL_object(did_src)) == NULL) TEST_ERROR
- srcdset_fillversion = dsetp->shared->dcpl_cache.fill.version;
+
+ srcdset_layoutversion = dsetp->shared->layout.version;
/* Close dataspace */
if(H5Sclose(sid) < 0) TEST_ERROR
@@ -2224,9 +2225,9 @@ test_copy_dataset_versionbounds(hid_t fcpl_src, hid_t fapl_src)
/* If copy failed, check if the failure is expected */
if (ret < 0)
{
- /* Failure is valid if fill version of source dataset is
+ /* Failure is valid if layout version of source dataset is
greater than destination */
- if (srcdset_fillversion <= H5O_fill_ver_bounds[high])
+ if (srcdset_layoutversion <= H5O_layout_ver_bounds[high])
TEST_ERROR
/* Close the DST file before continue */