From 2fe7d17a766faab80edb4f0e094f2dc3f8210d01 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 21 Aug 2020 09:49:44 -0500 Subject: Avoid potential shadow-file clashes, call the shadow file `rw-shadow`. --- test/vfd_swmr_addrem_writer.c | 3 ++- test/vfd_swmr_reader.c | 2 +- test/vfd_swmr_remove_reader.c | 2 +- test/vfd_swmr_remove_writer.c | 2 +- test/vfd_swmr_sparse_reader.c | 2 +- test/vfd_swmr_sparse_writer.c | 2 +- test/vfd_swmr_writer.c | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/vfd_swmr_addrem_writer.c b/test/vfd_swmr_addrem_writer.c index a8aefa9..51b2470 100644 --- a/test/vfd_swmr_addrem_writer.c +++ b/test/vfd_swmr_addrem_writer.c @@ -115,7 +115,8 @@ open_skeleton(const char *filename, unsigned verbose) config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + esnprintf(config->md_file_path, sizeof(config->md_file_path), + "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_reader.c b/test/vfd_swmr_reader.c index 706c894..ff31bdd 100644 --- a/test/vfd_swmr_reader.c +++ b/test/vfd_swmr_reader.c @@ -353,7 +353,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, config->max_lag = 5; config->writer = FALSE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) { diff --git a/test/vfd_swmr_remove_reader.c b/test/vfd_swmr_remove_reader.c index 3515987..c7689c0 100644 --- a/test/vfd_swmr_remove_reader.c +++ b/test/vfd_swmr_remove_reader.c @@ -317,7 +317,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, config->max_lag = 5; config->writer = FALSE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_remove_writer.c b/test/vfd_swmr_remove_writer.c index 2ebe96f..ae64ff0 100644 --- a/test/vfd_swmr_remove_writer.c +++ b/test/vfd_swmr_remove_writer.c @@ -108,7 +108,7 @@ open_skeleton(const char *filename, unsigned verbose, config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_sparse_reader.c b/test/vfd_swmr_sparse_reader.c index 83fb886..4f87ac5 100644 --- a/test/vfd_swmr_sparse_reader.c +++ b/test/vfd_swmr_sparse_reader.c @@ -223,7 +223,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, config->max_lag = 5; config->writer = FALSE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_sparse_writer.c b/test/vfd_swmr_sparse_writer.c index 5722558..509a62c 100644 --- a/test/vfd_swmr_sparse_writer.c +++ b/test/vfd_swmr_sparse_writer.c @@ -108,7 +108,7 @@ open_skeleton(const char *filename, unsigned verbose) config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_writer.c b/test/vfd_swmr_writer.c index 1d73dd6..1538ef3 100644 --- a/test/vfd_swmr_writer.c +++ b/test/vfd_swmr_writer.c @@ -117,7 +117,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) -- cgit v0.12