diff options
author | David Young <dyoung@hdfgroup.org> | 2020-06-11 21:23:09 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-06-11 21:23:09 (GMT) |
commit | 56bc1ea53557bb6d95ad78a86a80e8a17914826f (patch) | |
tree | 1d4ef33ec37744def5130d6ae10764b9d2a4b579 /test/vfd_swmr_bigset_writer.c | |
parent | 57fde42f7df33722157ba4e0e80ba937309ac796 (diff) | |
download | hdf5-56bc1ea53557bb6d95ad78a86a80e8a17914826f.zip hdf5-56bc1ea53557bb6d95ad78a86a80e8a17914826f.tar.gz hdf5-56bc1ea53557bb6d95ad78a86a80e8a17914826f.tar.bz2 |
Make the test more challenging: on every other step, read a chunk-sized
region offset by 1 unit from a chunk boundary.
Diffstat (limited to 'test/vfd_swmr_bigset_writer.c')
-rw-r--r-- | test/vfd_swmr_bigset_writer.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c index 2a2718c..859393b 100644 --- a/test/vfd_swmr_bigset_writer.c +++ b/test/vfd_swmr_bigset_writer.c @@ -524,26 +524,30 @@ verify_extensible_dset(state_t *s, unsigned int which, mat_t *mat, last_step = nrows - hang_back; for (step = *stepp; step <= last_step; step++) { + const unsigned ofs = step % 2; + dbgf(1, "%s: which %u step %u\n", __func__, which, step); size[0] = s->chunk_dims[0] * (1 + step); - last.row = s->chunk_dims[0] * step; + last.row = s->chunk_dims[0] * step + ofs; if (s->two_dee) { size[1] = s->chunk_dims[1] * (1 + step); - last.col = s->chunk_dims[1] * step; + last.col = s->chunk_dims[1] * step + ofs; } else { size[1] = s->chunk_dims[1]; last.col = 0; } dbgf(1, "new size %" PRIuHSIZE ", %" PRIuHSIZE "\n", size[0], size[1]); + dbgf(1, "last row %" PRIuHSIZE " col %" PRIuHSIZE "\n", last.row, + last.col); if (s->two_dee) { /* Down the right side, intersecting the bottom row. */ base.col = last.col; - for (base.row = 0; base.row <= last.row; + for (base.row = ofs; base.row <= last.row; base.row += s->chunk_dims[0]) { verify_chunk(s, filespace, mat, which, base); } @@ -552,7 +556,7 @@ verify_extensible_dset(state_t *s, unsigned int which, mat_t *mat, * avoid re-writing the bottom-right chunk. */ base.row = last.row; - for (base.col = 0; base.col < last.col; + for (base.col = ofs; base.col < last.col; base.col += s->chunk_dims[1]) { verify_chunk(s, filespace, mat, which, base); } |