From 0f1be317c37ca04db263680e6f1fe4d97b937b39 Mon Sep 17 00:00:00 2001 From: Vailin Choi Date: Fri, 6 Dec 2019 12:17:30 -0600 Subject: More fixes for the PR: (1) Set the version for reference datatype message to H5O_DTYPE_VERSION_4. (2) The tests for the new reference types should work for V112 and beyond. --- src/H5T.c | 1 + test/trefer.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/H5T.c b/src/H5T.c index 43dfef8..f2d6c70 100644 --- a/src/H5T.c +++ b/src/H5T.c @@ -254,6 +254,7 @@ dt->shared->u.atomic.u.r.rtype = H5R_OBJECT2; \ dt->shared->u.atomic.u.r.opaque = TRUE; \ dt->shared->u.atomic.u.r.version = H5R_ENCODE_VERSION; \ + dt->shared->version = H5O_DTYPE_VERSION_4; \ } /* Define the code templates for the "SIZE_TMPL" in the H5T_INIT_TYPE macro */ diff --git a/test/trefer.c b/test/trefer.c index 7d87ea9..580ebe1 100644 --- a/test/trefer.c +++ b/test/trefer.c @@ -2811,7 +2811,7 @@ test_reference(void) for(high = H5F_LIBVER_EARLIEST; high < H5F_LIBVER_NBOUNDS; H5_INC_ENUM(H5F_libver_t, high)) { /* Invalid combinations, just continue */ - if(high == H5F_LIBVER_EARLIEST || high < low) + if(high <= H5F_LIBVER_V110 || high < low) continue; test_reference_region(low, high); /* Test basic H5R dataset region reference code */ -- cgit v0.12