summaryrefslogtreecommitdiffstats
path: root/test/page_buffer.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-08-21 14:53:50 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-08-21 14:53:50 (GMT)
commit0bbf92da01ec9d19bd498a9eb7f92c46b4b469ac (patch)
treeae14b252e4f366e55ddff88d675bc34653e50a24 /test/page_buffer.c
parent2ef65c82a6a8b7d1fac4b5b825b4b6de81494de7 (diff)
parentc68700769fa56b04e4e13f2e5019cc2b93599fd5 (diff)
downloadhdf5-0bbf92da01ec9d19bd498a9eb7f92c46b4b469ac.zip
hdf5-0bbf92da01ec9d19bd498a9eb7f92c46b4b469ac.tar.gz
hdf5-0bbf92da01ec9d19bd498a9eb7f92c46b4b469ac.tar.bz2
Merge branch 'feature/vfd_swmr' into multi
Diffstat (limited to 'test/page_buffer.c')
-rw-r--r--test/page_buffer.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/page_buffer.c b/test/page_buffer.c
index d89a701..88b3317 100644
--- a/test/page_buffer.c
+++ b/test/page_buffer.c
@@ -140,17 +140,23 @@ swmr_fapl_augment(hid_t fapl, const char *filename, uint32_t max_lag)
, .writer = true
, .md_pages_reserved = 128
};
- const char *dname;
- char *tname;
+ const char *bname, *dname;
+ char *tname[2];
- if ((tname = strdup(filename)) == NULL) {
+ if ((tname[0] = strdup(filename)) == NULL) {
HDfprintf(stderr, "temporary string allocation failed\n");
return -1;
}
- dname = dirname(tname);
+ if ((tname[1] = strdup(filename)) == NULL) {
+ HDfprintf(stderr, "temporary string allocation failed\n");
+ return -1;
+ }
+ dname = dirname(tname[0]);
+ bname = basename(tname[1]);
snprintf(config.md_file_path, sizeof(config.md_file_path),
- "%s/my_md_file", dname);
- free(tname);
+ "%s/%s.shadow", dname, bname);
+ free(tname[0]);
+ free(tname[1]);
/* Enable VFD SWMR configuration */
if(H5Pset_vfd_swmr_config(fapl, &config) < 0) {