Skip to content

Commit

Permalink
Restore to test for both contig and chunked dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
vchoi-hdfgroup committed Sep 15, 2023
1 parent 287ef6a commit f9e08f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/cmpd_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,23 @@ test_select_dst_subset(char *fname, hid_t fapl, hid_t in_dxpl, unsigned set_fill
goto error;
}

/* Create contiguous data set */
if ((did = H5Dcreate2(fid, DSET_NAME[2], src_tid, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0)
goto error;

/* Write to the dataset with rew_tid */
if (H5Dwrite(did, rew_tid, H5S_ALL, H5S_ALL, dxpl, rew_buf) < 0)
goto error;

if (H5Dread(did, rew_tid, H5S_ALL, H5S_ALL, dxpl, rbuf) < 0)
goto error;

if (compare_stype4_data(save_rew_buf, rbuf) < 0)
goto error;

if (H5Dclose(did) < 0)
goto error;

/* Set chunking */
if (H5Pset_chunk(dcpl, 2, chunk_dims) < 0)
goto error;
Expand Down

0 comments on commit f9e08f6

Please sign in to comment.