summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_zoo_writer.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-03-23 19:55:07 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-03-23 19:55:07 (GMT)
commitcb5e1ead29a66dcfdb7bee6e65ed76a9a93a3f9b (patch)
tree58514d4dc1954cb9deac08808ec686271f7e7413 /test/vfd_swmr_zoo_writer.c
parent51b8fa3ffefc17309ec45b36fa155486f9fbfec2 (diff)
downloadhdf5-cb5e1ead29a66dcfdb7bee6e65ed76a9a93a3f9b.zip
hdf5-cb5e1ead29a66dcfdb7bee6e65ed76a9a93a3f9b.tar.gz
hdf5-cb5e1ead29a66dcfdb7bee6e65ed76a9a93a3f9b.tar.bz2
Let tests provide a "hook" that runs after each step in create_zoo().
Provide a hook in vfd_swmr_zoo_writer that calls H5Fvfd_swmr_end_tick().
Diffstat (limited to 'test/vfd_swmr_zoo_writer.c')
-rw-r--r--test/vfd_swmr_zoo_writer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/vfd_swmr_zoo_writer.c b/test/vfd_swmr_zoo_writer.c
index ad2288f..f09c57e 100644
--- a/test/vfd_swmr_zoo_writer.c
+++ b/test/vfd_swmr_zoo_writer.c
@@ -53,6 +53,13 @@ print_cache_hits(H5C_t *cache)
dbgf(3, "\n");
}
+void
+zoo_create_hook(hid_t fid)
+{
+ dbgf(3, "%s: enter\n", __func__);
+ H5Fvfd_swmr_end_tick(fid);
+}
+
static void
usage(const char *progname)
{