summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-04-04 21:29:37 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-04-04 21:29:37 (GMT)
commit0073f198978dea0116bd74816b3119dfeb09144b (patch)
treedb2698fb4cc1d3e332d99834dd2cae170feed2e4 /test/h5test.c
parentaa696a47715c3dd9c068f71915c6dcf23745441c (diff)
downloadhdf5-0073f198978dea0116bd74816b3119dfeb09144b.zip
hdf5-0073f198978dea0116bd74816b3119dfeb09144b.tar.gz
hdf5-0073f198978dea0116bd74816b3119dfeb09144b.tar.bz2
Set V112 as the latest format and extend the arrays of version bounds.
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/h5test.c b/test/h5test.c
index bc3f2fa..8634a4d 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -100,6 +100,17 @@ 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;
@@ -1940,3 +1951,17 @@ error:
return NULL;
} /* h5_get_dummy_vol_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 */