diff options
author | David Young <dyoung@hdfgroup.org> | 2020-05-07 19:34:34 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-07 19:34:34 (GMT) |
commit | b7c05d2231c4266773b9be487766712e09295e4b (patch) | |
tree | 3bf7ff917e43d139243feb62e9667a570a5c8da8 /test/vfd_swmr_bigset_writer.c | |
parent | 5d4b109abf6be244fa59c3bb8dbde8b2d7aca795 (diff) | |
download | hdf5-b7c05d2231c4266773b9be487766712e09295e4b.zip hdf5-b7c05d2231c4266773b9be487766712e09295e4b.tar.gz hdf5-b7c05d2231c4266773b9be487766712e09295e4b.tar.bz2 |
Fix bugs in the dataset dimensions checks.
Diffstat (limited to 'test/vfd_swmr_bigset_writer.c')
-rw-r--r-- | test/vfd_swmr_bigset_writer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c index 54ec77b..21c13db 100644 --- a/test/vfd_swmr_bigset_writer.c +++ b/test/vfd_swmr_bigset_writer.c @@ -284,15 +284,17 @@ open_extensible_dset(state_t *s, unsigned int which) if (s->two_dee) { if (maxdims[0] != two_dee_max_dims[0] || - maxdims[1] != two_dee_max_dims[1]) { + maxdims[1] != two_dee_max_dims[1] || + maxdims[0] != maxdims[1]) { errx(EXIT_FAILURE, "Unexpected maximum dimensions %" - PRIuHSIZE " x %" PRIuHSIZE, dims[0], dims[1]); + PRIuHSIZE " x %" PRIuHSIZE, maxdims[0], maxdims[1]); } } else if (maxdims[0] != one_dee_max_dims[0] || maxdims[1] != one_dee_max_dims[1] || - dims[0] != original_dims[0]) { + dims[1] != original_dims[1]) { errx(EXIT_FAILURE, "Unexpected maximum dimensions %" - PRIuHSIZE " x %" PRIuHSIZE, dims[0], dims[1]); + PRIuHSIZE " x %" PRIuHSIZE " or columns %" PRIuHSIZE, + maxdims[0], maxdims[1], dims[1]); } if (H5Sclose(filespace) < 0) |