diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-04-10 15:58:59 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2019-04-10 15:58:59 (GMT) |
commit | 4feb2100591c802ea450dc26dae4e0546479fa96 (patch) | |
tree | 7519ef68d09ca5ef6c6e3de372eca4540ac1f688 /test/h5test.c | |
parent | 1fb34f7e8cb960bdf8132cd4cf63b5c7cf11a969 (diff) | |
download | hdf5-4feb2100591c802ea450dc26dae4e0546479fa96.zip hdf5-4feb2100591c802ea450dc26dae4e0546479fa96.tar.gz hdf5-4feb2100591c802ea450dc26dae4e0546479fa96.tar.bz2 |
Make corresponding changes for version bounds in V110.
This is based on PR#1639 merged to develop branch.
Diffstat (limited to 'test/h5test.c')
-rw-r--r-- | test/h5test.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c index 62eb6bf..0d7603f 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -97,6 +97,16 @@ static const char *multi_letters = "msbrglo"; /* The # of seconds to wait for the message file--used by h5_wait_message() */ #define MESSAGE_TIMEOUT 300 /* Timeout in seconds */ +/* The strings that correspond to library version bounds H5F_libver_t in H5Fpublic.h */ +/* This is used by h5_get_version_string() */ +const char *LIBVER_NAMES[] = { + "earliest", /* H5F_LIBVER_EARLIEST = 0 */ + "v18", /* H5F_LIBVER_V18 = 1 */ + "v110", /* H5F_LIBVER_V110 = 2 */ + "latest", /* H5F_LIBVER_V112 = 3 */ + NULL +}; + /* Previous error reporting function */ static H5E_auto2_t err_func = NULL; @@ -1931,3 +1941,17 @@ error: return NULL; } /* h5_get_dummy_vfd_class */ +/*------------------------------------------------------------------------- + * Function: h5_get_version_string + * + * Purpose: Get the string that corresponds to the libvery version bound. + * + * Return: The string + * + *------------------------------------------------------------------------- + */ +char * +h5_get_version_string(H5F_libver_t libver) +{ + return(LIBVER_NAMES[libver]); +} /* end of h5_get_version_string */ |